mirror of https://github.com/embarklabs/embark.git
changes to bootnodes, kill console toggle option
This commit is contained in:
parent
76ec8442ee
commit
482a630294
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue