mirror of https://github.com/embarklabs/embark.git
changes to bootpeers and ending console toggle
This commit is contained in:
parent
480006a865
commit
d8881dd674
|
@ -85,11 +85,11 @@ Blockchain.prototype.run_command = function(address, use_tmp) {
|
||||||
cmd += "--nat \"" + config.nat + "\"";
|
cmd += "--nat \"" + config.nat + "\"";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (config.bootNodes.boot == true){
|
if (config.bootNodes !== undefined && config.bootNodes.boot == true) {
|
||||||
cmd += "--bootnodes \"";
|
cmd += "--bootnodes \"";
|
||||||
for (var i = 0; i < config.bootNodes.enodes.length; i++){
|
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 (i != config.bootNodes.enodes.length - 1) cmd += " ";
|
||||||
}
|
}
|
||||||
cmd += "\"";
|
cmd += "\"";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue