Merge pull request #120 from SafeMarket/testnet

Testnet
This commit is contained in:
Iuri Matias 2015-11-23 08:25:19 -05:00
commit 58b2cb84ae
2 changed files with 6 additions and 1 deletions

View File

@ -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 + "\" ";
}

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;