add testnet option

This commit is contained in:
Aakil Fernandes 2015-11-20 11:18:32 -05:00
parent d07ddaf1e8
commit b5fc0f5b9a
1 changed files with 4 additions and 0 deletions

View File

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