From 0a2a26fd2916e850053598ba312d3dddca387523 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Sun, 30 Oct 2016 20:01:25 -0400 Subject: [PATCH] fix network config type --- lib/geth_commands.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/geth_commands.js b/lib/geth_commands.js index 9b81fd7b1..fdb7cef36 100644 --- a/lib/geth_commands.js +++ b/lib/geth_commands.js @@ -54,6 +54,8 @@ GethCommands.prototype.listAccountsCommand = function() { cmd += "--testnet "; } else if (config.networkType === 'olympic') { cmd += "--olympic "; + } else if (config.networkType === 'custom') { + cmd += "--networkid " + config.networkId + " "; } if (config.datadir) { @@ -80,9 +82,7 @@ GethCommands.prototype.mainCommand = function(address) { cmd += "--testnet "; } else if (config.networkType === 'olympic') { cmd += "--olympic "; - } - - if (config.networkType === 'custom') { + } else if (config.networkType === 'custom') { cmd += "--networkid " + config.networkId + " "; }