diff --git a/lib/blockchain.js b/lib/blockchain.js index 9ab5deaf..cb67b2d1 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){ + cmd += "--testnet " + } + if (config.minerthreads !== void 0) { cmd += "--minerthreads \"" + config.minerthreads + "\" "; } diff --git a/lib/config/blockchain.js b/lib/config/blockchain.js index 99f861c3..bb93342a 100644 --- a/lib/config/blockchain.js +++ b/lib/config/blockchain.js @@ -51,7 +51,8 @@ BlockchainConfig.prototype.config = function(env) { mine_when_needed: config.mine_when_needed || false, whisper: config.whisper || false, account: config.account, - geth_extra_opts: config.geth_extra_opts + geth_extra_opts: config.geth_extra_opts, + testnet: config.testnet || false } return config;