diff --git a/lib/blockchain.js b/lib/blockchain.js index cb67b2d1..bfa4794b 100644 --- a/lib/blockchain.js +++ b/lib/blockchain.js @@ -37,10 +37,12 @@ Blockchain.prototype.generate_basic_command = function() { if(config.mine) cmd += "--mine "; - - if (config.genesisBlock !== void 0) { + + if (config.minerthreads !== void 0) + cmd += "--minerthreads \"" + config.minerthreads + "\" "; + + if (config.genesisBlock !== void 0) cmd += "--genesis=\"" + config.genesisBlock + "\" "; - } if (config.whisper) { cmd += "--shh "; @@ -49,7 +51,6 @@ Blockchain.prototype.generate_basic_command = function() { cmd += '--rpcapi "' + rpc_api.join(',') + '" '; - //TODO: this should be configurable cmd += "--maxpeers " + config.maxPeers + " "; if (config.account.password !== void 0) {