diff --git a/lib/core/processes/processManager.js b/lib/core/processes/processManager.js index 2556acb5a..dbb4450d2 100644 --- a/lib/core/processes/processManager.js +++ b/lib/core/processes/processManager.js @@ -16,7 +16,7 @@ class ProcessManager { self.events.setCommandHandler('processes:launch', (name, cb) => { let process = self.processes[name]; - if (process.state != 'unstarted') { + if (process.state !== 'unstarted') { return cb(); } process.state = 'starting'; diff --git a/lib/modules/blockchain_process/blockchain.js b/lib/modules/blockchain_process/blockchain.js index d391ba5b9..a2cd6c117 100644 --- a/lib/modules/blockchain_process/blockchain.js +++ b/lib/modules/blockchain_process/blockchain.js @@ -257,10 +257,6 @@ Blockchain.prototype.initChainAndGetAddress = function(callback) { next(err); }); }, - function copy(next) { - // copy mining script - fs.copy(fs.embarkPath("js"), ".embark/" + self.env + "/js", {overwrite: true}, next); - }, function listAccounts(next) { self.runCommand(self.client.listAccountsCommand(), {}, (err, stdout, _stderr) => { if (err || stdout === undefined || stdout.match(/{(\w+)}/) === null || stdout.indexOf("Fatal") >= 0) { diff --git a/lib/modules/blockchain_process/index.js b/lib/modules/blockchain_process/index.js index 96c32a940..5f5636520 100644 --- a/lib/modules/blockchain_process/index.js +++ b/lib/modules/blockchain_process/index.js @@ -20,7 +20,6 @@ class BlockchainModule { registerBlockchainProcess() { const self = this; this.events.request('processes:register', 'blockchain', (cb) => { - console.dir("gonna check node connection"); self.assertNodeConnection(true, (connected) => { if (connected) return cb(); self.startBlockchainNode(cb); @@ -51,7 +50,7 @@ class BlockchainModule { const {host, port, type, protocol} = self.contractsConfig.deployment; utils.pingEndpoint(host, port, type, protocol, self.blockchainConfig.wsOrigins.split(',')[0], next); } - ], function (err, _result) { + ], function (err) { if (err === true || err === undefined) { return cb(true); }