fix blockchain node not found msg so it actually shows red
This commit is contained in:
parent
af823f98b6
commit
4af9114681
|
@ -140,7 +140,7 @@ class BlockchainConnector {
|
||||||
self.web3._requestManager.send({method: 'web3_clientVersion', params: []}, (err, version) => {
|
self.web3._requestManager.send({method: 'web3_clientVersion', params: []}, (err, version) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
self.isWeb3Ready = false;
|
self.isWeb3Ready = false;
|
||||||
return next(null, {name: "Ethereum node (version unknown)", status: 'on'});
|
return next(null, {name: "Ethereum node not found", status: 'off'});
|
||||||
}
|
}
|
||||||
if (version.indexOf("/") < 0) {
|
if (version.indexOf("/") < 0) {
|
||||||
self.events.emit(WEB3_READY);
|
self.events.emit(WEB3_READY);
|
||||||
|
|
Loading…
Reference in New Issue