rm commented code and extra whitespace
This commit is contained in:
parent
4461ab46d5
commit
282513ad8e
|
@ -15,13 +15,6 @@ class Simulator {
|
|||
let cmds = [];
|
||||
|
||||
const ganache = path.join(__dirname, '../../node_modules/.bin/ganache-cli');
|
||||
// const testrpc = shelljs.which('testrpc');
|
||||
// const ganache = shelljs.which('ganache-cli');
|
||||
// if (!testrpc && !ganache) {
|
||||
// this.logger.warn(__('%s is not installed on your machine', 'Ganache CLI (TestRPC)'));
|
||||
// this.logger.info(__('You can install it by running: %s', 'npm -g install ganache-cli'));
|
||||
// process.exit();
|
||||
// }
|
||||
|
||||
let useProxy = this.blockchainConfig.proxy || false;
|
||||
let host = (dockerHostSwap(options.host || this.blockchainConfig.rpcHost) || defaultHost);
|
||||
|
@ -47,8 +40,6 @@ class Simulator {
|
|||
cmds.push("-b \"" + (simulatorBlocktime) +"\"");
|
||||
}
|
||||
|
||||
// const programName = ganache ? 'ganache-cli' : 'testrpc';
|
||||
// const program = ganache ? ganache : testrpc;
|
||||
const programName = 'ganache-cli';
|
||||
const program = ganache;
|
||||
console.log(`running: ${programName} ${cmds.join(' ')}`);
|
||||
|
@ -58,7 +49,6 @@ class Simulator {
|
|||
let ipcObject = new Ipc({ipcRole: 'client'});
|
||||
proxy.serve(ipcObject, host, port, false);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue