diff --git a/lib/core/engine.js b/lib/core/engine.js index 1b00b4ec..47af0ad8 100644 --- a/lib/core/engine.js +++ b/lib/core/engine.js @@ -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'}); } }); }); diff --git a/lib/dashboard/monitor.js b/lib/dashboard/monitor.js index aaafe736..60be81b8 100644 --- a/lib/dashboard/monitor.js +++ b/lib/dashboard/monitor.js @@ -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); }