mirror of https://github.com/embarklabs/embark.git
rm commented code and extra whitespace
This commit is contained in:
parent
3dcee19002
commit
0629f757a9
|
@ -12,13 +12,7 @@ class Simulator {
|
||||||
run(options) {
|
run(options) {
|
||||||
let cmds = [];
|
let cmds = [];
|
||||||
|
|
||||||
const testrpc = shelljs.which('testrpc');
|
const ganache = path.join(__dirname, '../../node_modules/.bin/ganache-cli');
|
||||||
const ganache = shelljs.which('ganache-cli-embark');
|
|
||||||
// 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 useProxy = this.blockchainConfig.proxy || false;
|
||||||
let host = (options.host || this.blockchainConfig.rpcHost || 'localhost');
|
let host = (options.host || this.blockchainConfig.rpcHost || 'localhost');
|
||||||
|
@ -44,8 +38,6 @@ class Simulator {
|
||||||
cmds.push("-b \"" + (simulatorBlocktime) +"\"");
|
cmds.push("-b \"" + (simulatorBlocktime) +"\"");
|
||||||
}
|
}
|
||||||
|
|
||||||
// const programName = ganache ? 'ganache-cli' : 'testrpc';
|
|
||||||
// const program = ganache ? ganache : testrpc;
|
|
||||||
const programName = 'ganache-cli';
|
const programName = 'ganache-cli';
|
||||||
const program = ganache;
|
const program = ganache;
|
||||||
console.log(`running: ${programName} ${cmds.join(' ')}`);
|
console.log(`running: ${programName} ${cmds.join(' ')}`);
|
||||||
|
@ -55,7 +47,6 @@ class Simulator {
|
||||||
let ipcObject = new Ipc({ipcRole: 'client'});
|
let ipcObject = new Ipc({ipcRole: 'client'});
|
||||||
proxy.serve(ipcObject, host, port, false);
|
proxy.serve(ipcObject, host, port, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue