mirror of
https://github.com/status-im/go-waku.git
synced 2025-02-26 20:10:44 +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