Modify isOnline setting when LightMode is on and Relay is off

This commit is contained in:
Vitaliy Vlasov 2023-06-15 17:23:20 +03:00 committed by richΛrd
parent be766a8636
commit f0f3543df8

View File

@ -162,8 +162,10 @@ func (w *WakuNode) Status() (isOnline bool, hasHistory bool) {
hasHistory = true
}
if hasRelay || hasLightPush && (hasStore || hasFilter) {
isOnline = true
if w.opts.enableFilterLightNode && !w.opts.enableRelay {
isOnline = hasLightPush && hasFilter
} else {
isOnline = hasRelay || hasLightPush && (hasStore || hasFilter)
}
return