mirror of https://github.com/embarklabs/embark.git
simplify whisper config condition
This commit is contained in:
parent
88bdd662de
commit
5c05b7f8d9
|
@ -19,15 +19,10 @@ var Blockchain = function(blockchainConfig, Client) {
|
||||||
port: this.blockchainConfig.port || 30303,
|
port: this.blockchainConfig.port || 30303,
|
||||||
nodiscover: this.blockchainConfig.nodiscover || false,
|
nodiscover: this.blockchainConfig.nodiscover || false,
|
||||||
mine: this.blockchainConfig.mine || false,
|
mine: this.blockchainConfig.mine || false,
|
||||||
account: this.blockchainConfig.account || {}
|
account: this.blockchainConfig.account || {},
|
||||||
|
whisper: (this.blockchainConfig.whisper === undefined) || this.blockchainConfig.whisper
|
||||||
};
|
};
|
||||||
|
|
||||||
if (this.blockchainConfig.whisper === false) {
|
|
||||||
this.config.whisper = false;
|
|
||||||
} else {
|
|
||||||
this.config.whisper = (this.blockchainConfig.whisper || true);
|
|
||||||
}
|
|
||||||
|
|
||||||
this.client = new Client({config: this.config});
|
this.client = new Client({config: this.config});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue