Merge pull request #93 from SafeMarket/minefix
only mine if config.mine is true
This commit is contained in:
commit
e78554b02f
|
@ -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 + "\" ";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue