Skip to content

Commit

Permalink
chore: use gossipsubDMin
Browse files Browse the repository at this point in the history
Co-authored-by: richΛrd <info@richardramos.me>
  • Loading branch information
chaitanyaprem and richard-ramos authored Feb 8, 2024
1 parent 6fb9130 commit b47f86c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion waku/v2/peermanager/peer_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b47f86c

Please sign in to comment.