changes to bootpeers and ending console toggle

This commit is contained in:
RJ Catalano 2015-10-23 19:30:30 -05:00 committed by Iuri Matias
parent 480006a865
commit d8881dd674
1 changed files with 2 additions and 2 deletions

View File

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