diff --git a/lib/blockchain.js b/lib/blockchain.js index 9ab37a5c9..950cb7b2e 100644 --- a/lib/blockchain.js +++ b/lib/blockchain.js @@ -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 + "\" "; }