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) {