File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -235,11 +235,13 @@ class Engine {
235235 } ) ;
236236
237237 self . servicesMonitor . addCheck ( 'Whisper' , function ( cb ) {
238- self . web3 . version . getWhisper ( function ( err , res ) {
238+ self . web3 . version . getWhisper ( function ( err , version ) {
239239 if ( err ) {
240240 return cb ( { name : 'Whisper' , status : 'off' } ) ;
241+ } else if ( version >= 5 ) {
242+ return cb ( { name : 'Whisper (version ' + version + ') - unsupported' , status : 'warn' } ) ;
241243 } else {
242- return cb ( { name : 'Whisper' , status : 'on' } ) ;
244+ return cb ( { name : 'Whisper (version ' + version + ') ', status : 'on' } ) ;
243245 }
244246 } ) ;
245247 } ) ;
Original file line number Diff line number Diff line change @@ -49,6 +49,8 @@ class Dashboard {
4949 services . push ( checkObj . name . green ) ;
5050 } else if ( checkObj . status === 'off' ) {
5151 services . push ( checkObj . name . red ) ;
52+ } else if ( checkObj . status === 'warn' ) {
53+ services . push ( checkObj . name . grey ) ;
5254 } else {
5355 services . push ( checkObj . name ) ;
5456 }
You can’t perform that action at this time.
0 commit comments