From 6016ef61d9d970b0fc6a23cb3d9994599a46298c Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Fri, 20 Jul 2018 17:12:57 +0300 Subject: [PATCH] fix checking node connection --- lib/modules/blockchain_process/blockchainProcessLauncher.js | 2 +- lib/modules/blockchain_process/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/modules/blockchain_process/blockchainProcessLauncher.js b/lib/modules/blockchain_process/blockchainProcessLauncher.js index a15e5909b..1bd6685fa 100644 --- a/lib/modules/blockchain_process/blockchainProcessLauncher.js +++ b/lib/modules/blockchain_process/blockchainProcessLauncher.js @@ -21,7 +21,7 @@ class BlockchainProcessLauncher { this.logger.info(__('Starting Blockchain node in another process').cyan); this.blockchainProcess = new ProcessLauncher({ - modulePath: utils.joinPath(__dirname, '../../cmds/blockchain/blockchainProcess.js'), + modulePath: utils.joinPath(__dirname, './blockchainProcess.js'), logger: this.logger, events: this.events, silent: this.logger.logLevel !== 'trace', diff --git a/lib/modules/blockchain_process/index.js b/lib/modules/blockchain_process/index.js index 3aa1be4c4..a57d52be1 100644 --- a/lib/modules/blockchain_process/index.js +++ b/lib/modules/blockchain_process/index.js @@ -84,7 +84,7 @@ class BlockchainModule { console.dir("------"); console.dir(result); console.dir("------"); - if (err === true || result === undefined) { + if (err === true || err === undefined) { return cb(true); } return cb(false);