fix for when maxpeers config is 0
This commit is contained in:
parent
6984c13ac6
commit
ff09e05965
|
@ -21,7 +21,7 @@ var Blockchain = function(blockchainConfig, Client) {
|
|||
mine: this.blockchainConfig.mine || false,
|
||||
account: this.blockchainConfig.account || {},
|
||||
whisper: (this.blockchainConfig.whisper === undefined) || this.blockchainConfig.whisper,
|
||||
maxpeers: this.blockchainConfig.maxpeers || 25
|
||||
maxpeers: ((this.blockchainConfig.maxpeers === 0) ? 0 : (this.blockchainConfig.maxpeers || 25))
|
||||
};
|
||||
|
||||
this.client = new Client({config: this.config});
|
||||
|
|
Loading…
Reference in New Issue