Merge pull request #93 from SafeMarket/minefix

only mine if config.mine is true
This commit is contained in:
Iuri Matias 2015-10-01 22:33:06 -04:00
commit e78554b02f
1 changed files with 3 additions and 1 deletions

View File

@ -31,7 +31,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 + "\" ";
}