diff --git a/waku/v2/peermanager/peer_manager.go b/waku/v2/peermanager/peer_manager.go index 64d4b28ac..2023d25a3 100644 --- a/waku/v2/peermanager/peer_manager.go +++ b/waku/v2/peermanager/peer_manager.go @@ -124,7 +124,7 @@ func (pm *PeerManager) checkAndUpdateTopicHealth(topic *NodeTopicDetails) int { oldHealth := topic.healthStatus if healthyPeerCount < 1 { //Ideally this check should be done with minPeersForRelay, but leaving it as is for now. topic.healthStatus = UnHealthy - } else if healthyPeerCount < 4 { + } else if healthyPeerCount < waku_proto.GossipSubDMin { topic.healthStatus = MinimallyHealthy } else { topic.healthStatus = SufficientlyHealthy