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