Update blockchain.js

This commit is contained in:
VoR0220 2015-10-25 13:56:06 -05:00 committed by Iuri Matias
parent 4b451f0290
commit a734eb2b7c
1 changed files with 3 additions and 6 deletions

View File

@ -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) {
@ -81,10 +82,6 @@ Blockchain.prototype.run_command = function(address, use_tmp) {
cmd += "--unlock " + address + " ";
}
if (config.nat !== "any"){
cmd += "--nat \"" + config.nat + "\"";
}
if (config.bootNodes !== undefined && config.bootNodes.boot == true) {
cmd += "--bootnodes \"";
for (var i = 0; i < config.bootNodes.enodes.length; i++){