mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-11 14:34:40 +00:00
include whisper version in the dashboard
This commit is contained in:
parent
d9e615453c
commit
ffbf6a70c5
@ -235,11 +235,13 @@ class Engine {
|
||||
});
|
||||
|
||||
self.servicesMonitor.addCheck('Whisper', function (cb) {
|
||||
self.web3.version.getWhisper(function (err, res) {
|
||||
self.web3.version.getWhisper(function (err, version) {
|
||||
if (err) {
|
||||
return cb({name: 'Whisper', status: 'off'});
|
||||
} else if (version >= 5) {
|
||||
return cb({name: 'Whisper (version ' + version + ') - unsupported', status: 'warn'});
|
||||
} else {
|
||||
return cb({name: 'Whisper', status: 'on'});
|
||||
return cb({name: 'Whisper (version ' + version + ')', status: 'on'});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
@ -49,6 +49,8 @@ class Dashboard {
|
||||
services.push(checkObj.name.green);
|
||||
} else if (checkObj.status === 'off') {
|
||||
services.push(checkObj.name.red);
|
||||
} else if (checkObj.status === 'warn') {
|
||||
services.push(checkObj.name.grey);
|
||||
} else {
|
||||
services.push(checkObj.name);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user