From d8881dd674783a503d2b48722bd24795da030208 Mon Sep 17 00:00:00 2001 From: RJ Catalano Date: Fri, 23 Oct 2015 19:30:30 -0500 Subject: [PATCH] changes to bootpeers and ending console toggle --- lib/blockchain.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/blockchain.js b/lib/blockchain.js index 52695c06d..73b6875a8 100644 --- a/lib/blockchain.js +++ b/lib/blockchain.js @@ -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 += "\""; }