diff --git a/lib/blockchain.js b/lib/blockchain.js index 4ddbc5a9..403d2f94 100644 --- a/lib/blockchain.js +++ b/lib/blockchain.js @@ -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});