From b5fc0f5b9a66c93ff5b982e93a2e616802bd3805 Mon Sep 17 00:00:00 2001 From: Aakil Fernandes Date: Fri, 20 Nov 2015 11:18:32 -0500 Subject: [PATCH] add testnet option --- lib/blockchain.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/blockchain.js b/lib/blockchain.js index 9ab5deaf1..adf0f8711 100644 --- a/lib/blockchain.js +++ b/lib/blockchain.js @@ -27,6 +27,10 @@ Blockchain.prototype.generate_basic_command = function() { cmd += "--networkid " + config.networkId + " "; cmd += "--rpccorsdomain \"" + config.rpcWhitelist + "\" "; + if(config.testnet !== void 0){ + cmd += "--testnet " + } + if (config.minerthreads !== void 0) { cmd += "--minerthreads \"" + config.minerthreads + "\" "; }