fix for when maxpeers config is 0

This commit is contained in:
Iuri Matias 2017-02-11 11:53:11 -05:00
parent 6984c13ac6
commit ff09e05965
1 changed files with 1 additions and 1 deletions

View File

@ -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});