We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88bdd66 commit 5c05b7fCopy full SHA for 5c05b7f
lib/blockchain.js
@@ -19,15 +19,10 @@ var Blockchain = function(blockchainConfig, Client) {
19
port: this.blockchainConfig.port || 30303,
20
nodiscover: this.blockchainConfig.nodiscover || false,
21
mine: this.blockchainConfig.mine || false,
22
- account: this.blockchainConfig.account || {}
+ account: this.blockchainConfig.account || {},
23
+ whisper: (this.blockchainConfig.whisper === undefined) || this.blockchainConfig.whisper
24
};
25
- if (this.blockchainConfig.whisper === false) {
26
- this.config.whisper = false;
27
- } else {
28
- this.config.whisper = (this.blockchainConfig.whisper || true);
29
- }
30
-
31
this.client = new Client({config: this.config});
32
33
0 commit comments