From f818faf680b49857cf038e2b4980b71f71d9644e Mon Sep 17 00:00:00 2001 From: Aakil Fernandes Date: Fri, 25 Sep 2015 15:21:46 -0400 Subject: [PATCH] only mine if config.mine is true --- lib/blockchain.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/blockchain.js b/lib/blockchain.js index 9ab37a5c..950cb7b2 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 + "\" "; }