mirror of https://github.com/embarklabs/embark.git
conflict in blockchain.js
This commit is contained in:
parent
b0a64cc043
commit
a88ab82261
|
@ -109,13 +109,14 @@ class Blockchain {
|
|||
|
||||
registerServiceCheck() {
|
||||
const self = this;
|
||||
const NO_NODE = 'noNode';
|
||||
|
||||
this.addCheck('Ethereum', function (cb) {
|
||||
async.waterfall([
|
||||
function checkNodeConnection(next) {
|
||||
self.assertNodeConnection(true, (err) => {
|
||||
if (err) {
|
||||
return next(true, {name: "No Blockchain node found", status: 'off'});
|
||||
return next(NO_NODE, {name: "No Blockchain node found", status: 'off'});
|
||||
}
|
||||
next();
|
||||
});
|
||||
|
@ -137,9 +138,8 @@ class Blockchain {
|
|||
});
|
||||
}
|
||||
], (err, statusObj) => {
|
||||
if (err && err !== true) {
|
||||
self.logger.error(err);
|
||||
return;
|
||||
if (err && err !== NO_NODE) {
|
||||
return cb(err);
|
||||
}
|
||||
cb(statusObj);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue