add testnet to config

This commit is contained in:
Aakil Fernandes 2015-11-20 11:57:51 -05:00
parent b5fc0f5b9a
commit af25780866
2 changed files with 3 additions and 2 deletions

View File

@ -27,7 +27,7 @@ Blockchain.prototype.generate_basic_command = function() {
cmd += "--networkid " + config.networkId + " ";
cmd += "--rpccorsdomain \"" + config.rpcWhitelist + "\" ";
if(config.testnet !== void 0){
if(config.testnet){
cmd += "--testnet "
}

View File

@ -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;