-
-
Save tuxcanfly/8c09aea8c55c0db77f64a48bfd077039 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/bin/node b/bin/node | |
index 4e1f9a31..1eb955b5 100755 | |
--- a/bin/node | |
+++ b/bin/node | |
@@ -22,7 +22,7 @@ if (process.argv.indexOf('--version') !== -1 | |
const FullNode = require('../lib/node/fullnode'); | |
const node = new FullNode({ | |
- config: true, | |
+ file: true, | |
argv: true, | |
env: true, | |
logFile: true, | |
diff --git a/lib/node/node.js b/lib/node/node.js | |
index a9007171..e9dd9c78 100644 | |
--- a/lib/node/node.js | |
+++ b/lib/node/node.js | |
@@ -43,7 +43,7 @@ class Node extends EventEmitter { | |
this.config.inject(options); | |
this.config.load(options); | |
- if (options.config) | |
+ if (options.file) | |
this.config.open(config); | |
this.network = Network.get(this.config.getSuffix()); | |
diff --git a/lib/wallet/plugin.js b/lib/wallet/plugin.js | |
index e20aff97..3d92cdb0 100644 | |
--- a/lib/wallet/plugin.js | |
+++ b/lib/wallet/plugin.js | |
@@ -34,7 +34,9 @@ class Plugin extends EventEmitter { | |
super(); | |
this.config = node.config.filter('wallet'); | |
- this.config.open('wallet.conf'); | |
+ | |
+ if (node.config.bool('file')) | |
+ this.config.open('wallet.conf'); | |
this.network = node.network; | |
this.logger = node.logger; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment