From 45ad693b23ab28c2dcdf5caec87fed53c24ae018 Mon Sep 17 00:00:00 2001 From: tycho garen Date: Fri, 10 Jun 2022 07:31:48 -0400 Subject: [PATCH] reduce persistent peer max (cherry picked from commit b213a2766f62f2b1293d5fcf8262301d48956dcc) --- 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 0febaad3c..77736c5d5 100644 --- a/internal/p2p/peermanager.go +++ b/internal/p2p/peermanager.go @@ -42,7 +42,7 @@ const ( type PeerScore int const ( - PeerScorePersistent PeerScore = math.MaxInt // persistent peers + PeerScorePersistent PeerScore = math.MaxInt16 // persistent peers MaxPeerScoreNotPersistent PeerScore = PeerScorePersistent - 1 )