From 12585beb6145df201d919286e0c7bf989691e740 Mon Sep 17 00:00:00 2001 From: tycho garen Date: Thu, 16 Jun 2022 19:52:21 -0400 Subject: [PATCH] up the attmept max --- internal/p2p/peermanager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/p2p/peermanager.go b/internal/p2p/peermanager.go index c10608159..821857cf6 100644 --- a/internal/p2p/peermanager.go +++ b/internal/p2p/peermanager.go @@ -971,7 +971,7 @@ func (m *PeerManager) Advertise(peerID types.NodeID, limit uint16) []NodeAddress // (limit), or we've added all known addresses, or we've tried // at least 256 times and the last time we iterated over // remaining addresses we added no new candidates. - for len(addresses) < int(limit) && (attempts < limit || !addedLastIteration) { + for len(addresses) < int(limit) && (attempts < (limit*2) || !addedLastIteration) { attempts++ addedLastIteration = false