From 482a630294db56fc5b6fb0c57b2d13a3471d5da9 Mon Sep 17 00:00:00 2001 From: VoR0220 Date: Tue, 20 Oct 2015 22:06:17 -0500 Subject: [PATCH] changes to bootnodes, kill console toggle option --- lib/blockchain.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/lib/blockchain.js b/lib/blockchain.js index 63218844c..8e26736cc 100644 --- a/lib/blockchain.js +++ b/lib/blockchain.js @@ -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) {