Skip to content

Commit

Permalink
clarify how peer retries reset to 0 through removal from DiscoveredPe…
Browse files Browse the repository at this point in the history
…ersPool
  • Loading branch information
iurii-ssv committed Feb 26, 2025
1 parent 198f2c3 commit ca56aa5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion network/p2p/p2p.go
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,9 @@ func (n *p2pNetwork) Start(logger *zap.Logger) error {
if value.ConnectRetries >= retryLimit {
// this discovered peer has been tried many times already, we'll ignore him but won't
// remove him from DiscoveredPeersPool (since if we do - discovery might suggest this
// peer again essentially resetting this peer's retry attempts counter to 0)
// peer again essentially resetting this peer's retry attempts counter to 0), eventually
// (after some time passes) this peer will automatically get removed from DiscoveredPeersPool
// so it can be discovered again (effectively resetting peer's retry attempts counter to 0)

// this log line is commented out as it is too spammy
//n.interfaceLogger.Debug(
Expand Down

0 comments on commit ca56aa5

Please sign in to comment.