From 302476e95ed76d94b018b16297d8654b0e2fd598 Mon Sep 17 00:00:00 2001 From: VoR0220 Date: Tue, 29 May 2018 14:19:25 -0500 Subject: [PATCH] fix simulator preferential treatment Signed-off-by: VoR0220 --- lib/cmds/simulator.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cmds/simulator.js b/lib/cmds/simulator.js index 8f2f22f71..a68b27e74 100644 --- a/lib/cmds/simulator.js +++ b/lib/cmds/simulator.js @@ -17,8 +17,8 @@ class Simulator { process.exit(); } - cmds.push("-p " + (this.blockchainConfig.rpcPort || options.port || 8545)); - cmds.push("-h " + (this.blockchainConfig.rpcHost || options.host || 'localhost')); + cmds.push("-p " + (options.port || this.blockchainConfig.rpcPort || 8545)); + cmds.push("-h " + (options.host || this.blockchainConfig.rpcHost || 'localhost')); cmds.push("-a " + (options.numAccounts || 10)); cmds.push("-e " + (options.defaultBalance || 100)); cmds.push("-l " + (options.gasLimit || 8000000));