From a734eb2b7c30563936a75698463ed9e3eafc472e Mon Sep 17 00:00:00 2001 From: VoR0220 Date: Sun, 25 Oct 2015 13:56:06 -0500 Subject: [PATCH] Update blockchain.js --- lib/blockchain.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/lib/blockchain.js b/lib/blockchain.js index 73b6875a..bee5d896 100644 --- a/lib/blockchain.js +++ b/lib/blockchain.js @@ -9,7 +9,7 @@ Blockchain.prototype.generate_basic_command = function() { var address = config.account.address; var cmd = "geth "; - var rpc_api = ['eth', 'web3', 'admin', 'net', 'miner']; + var rpc_api = ['eth', 'web3']; if (config.datadir !== "default") { cmd += "--datadir=\"" + config.datadir + "\" "; @@ -20,7 +20,6 @@ Blockchain.prototype.generate_basic_command = function() { cmd += config.geth_extra_opts + " "; } - cmd += "--port " + config.port + " "; cmd += "--rpc "; cmd += "--rpcport " + config.rpcPort + " "; @@ -44,6 +43,7 @@ Blockchain.prototype.generate_basic_command = function() { if (config.genesisBlock !== void 0) cmd += "--genesis=\"" + config.genesisBlock + "\" "; + } if (config.whisper) { cmd += "--shh "; @@ -52,6 +52,7 @@ Blockchain.prototype.generate_basic_command = function() { cmd += '--rpcapi "' + rpc_api.join(',') + '" '; + //TODO: this should be configurable cmd += "--maxpeers " + config.maxPeers + " "; if (config.account.password !== void 0) { @@ -80,10 +81,6 @@ Blockchain.prototype.run_command = function(address, use_tmp) { if (address !== void 0) { cmd += "--unlock " + address + " "; } - - if (config.nat !== "any"){ - cmd += "--nat \"" + config.nat + "\""; - } if (config.bootNodes !== undefined && config.bootNodes.boot == true) { cmd += "--bootnodes \"";