only mine if config.mine is true

This commit is contained in:
Aakil Fernandes 2015-09-25 15:21:46 -04:00 committed by Aakil Fernandes
parent 8539ff241f
commit f818faf680
1 changed files with 3 additions and 1 deletions

View File

@ -27,7 +27,9 @@ Blockchain.prototype.generate_basic_command = function() {
cmd += "--minerthreads \"" + config.minerthreads + "\" ";
}
cmd += "--mine ";
if(config.mine)
cmd += "--mine ";
if (config.genesisBlock !== void 0) {
cmd += "--genesis=\"" + config.genesisBlock + "\" ";
}