Update blockchain.js

This commit is contained in:
VoR0220 2015-10-19 19:54:27 -04:00 committed by Iuri Matias
parent ce36265c39
commit 4625fd6b5a
1 changed files with 5 additions and 4 deletions

View File

@ -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) {