mirror of
https://github.com/logos-messaging/logos-messaging-go.git
synced 2026-01-06 16:03:10 +00:00
Modify isOnline setting when LightMode is on and Relay is off
This commit is contained in:
parent
be766a8636
commit
f0f3543df8
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user