Merge pull request #579 from embark-framework/fix_simulator_issue

don't use -h option in simulator
This commit is contained in:
Iuri Matias 2018-06-25 13:53:47 -04:00 committed by GitHub
commit 2285f3b1c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,7 +25,9 @@ class Simulator {
let port = (options.port || this.blockchainConfig.rpcPort || 8545);
cmds.push("-p " + (port + (useProxy ? constants.blockchain.servicePortOnProxy : 0)));
cmds.push("-h " + host);
if (!ganache) {
cmds.push("-h " + host);
}
cmds.push("-a " + (options.numAccounts || 10));
cmds.push("-e " + (options.defaultBalance || 100));
cmds.push("-l " + (options.gasLimit || 8000000));
@ -43,7 +45,7 @@ class Simulator {
}
const program = ganache ? 'ganache-cli' : 'testrpc';
console.log(`running: ${program} ${cmds.join(' ')}`);
shelljs.exec(`${program} ${cmds.join(' ')}`, {async : true});
if(useProxy){