changes to bootnodes, kill console toggle option

This commit is contained in:
VoR0220 2015-10-20 22:06:17 -05:00 committed by Iuri Matias
parent 76ec8442ee
commit 482a630294
1 changed files with 5 additions and 7 deletions

View File

@ -81,15 +81,13 @@ Blockchain.prototype.run_command = function(address, use_tmp) {
cmd += "--unlock " + address + " ";
}
if (config.bootNodes !== undefined && config.bootNodes.boot == true){
cmd += "--bootnodes ";
if (config.bootNodes.boot == true){
cmd += "--bootnodes \"";
for (var i = 0; i < config.bootNodes.enodes.length; i++){
cmd += config.bootNodes.enodes[i] + " ";
cmd += config.bootNodes.enodes[i];
if (i != config.bootNodes.enodes.lenth - 1) cmd += " ";
}
}
if (config.console_toggle) {
cmd += "console";
cmd += "\"";
}
if (config.mine_when_needed) {