Update blockchain.js
This commit is contained in:
parent
4b451f0290
commit
a734eb2b7c
|
@ -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 \"";
|
||||
|
|
Loading…
Reference in New Issue