From 5f90b4516c03e80a9adc4ed6ae8b3e7308637454 Mon Sep 17 00:00:00 2001 From: Anthony Laibe Date: Wed, 12 Sep 2018 14:01:21 +0100 Subject: [PATCH] Ens disabled by default --- lib/core/config.js | 4 +--- lib/modules/ens/index.js | 2 +- templates/boilerplate/config/namesystem.js | 1 + templates/demo/config/namesystem.js | 1 + 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/core/config.js b/lib/core/config.js index cebc9282e..c3786efbf 100644 --- a/lib/core/config.js +++ b/lib/core/config.js @@ -282,9 +282,7 @@ Config.prototype.loadNameSystemConfigFile = function() { // todo: spec out names for registration in the file itself for a dev chain var configObject = { "default": { - "available_providers": ["ens"], - "provider": "ens", - "enabled": true + "enabled": false } }; diff --git a/lib/modules/ens/index.js b/lib/modules/ens/index.js index b03c3ba48..bef34d59f 100644 --- a/lib/modules/ens/index.js +++ b/lib/modules/ens/index.js @@ -33,7 +33,7 @@ class ENS { this.events.setCommandHandler("storage:ens:associate", this.associateStorageToEns.bind(this)); } - setProviderAndRegisterDomains(cb = () => {}) { + setProviderAndRegisterDomains(cb) { const self = this; async.parallel([ function getENSRegistry(paraCb) { diff --git a/templates/boilerplate/config/namesystem.js b/templates/boilerplate/config/namesystem.js index 35ef7e9a9..f3d14468e 100644 --- a/templates/boilerplate/config/namesystem.js +++ b/templates/boilerplate/config/namesystem.js @@ -1,6 +1,7 @@ module.exports = { // default applies to all environments default: { + enabled: true, available_providers: ["ens"], provider: "ens" }, diff --git a/templates/demo/config/namesystem.js b/templates/demo/config/namesystem.js index 00c8ab1fd..05a737b9b 100644 --- a/templates/demo/config/namesystem.js +++ b/templates/demo/config/namesystem.js @@ -1,6 +1,7 @@ module.exports = { // default applies to all environments default: { + enabled: true, available_providers: ["ens"], provider: "ens" },