From 0fe4c305ff8a6044e730e7d4c8328aeb43bc4c9e Mon Sep 17 00:00:00 2001 From: tycho garen Date: Sat, 18 Jun 2022 10:11:45 -0400 Subject: [PATCH] fix --- internal/p2p/peermanager.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/internal/p2p/peermanager.go b/internal/p2p/peermanager.go index 7e330e049..2099b8769 100644 --- a/internal/p2p/peermanager.go +++ b/internal/p2p/peermanager.go @@ -1300,17 +1300,8 @@ func (p *peerInfo) Score() PeerScore { score -= int64(addr.DialFailures) } -<<<<<<< HEAD - if score <= 0 { - return 0 - } - - if score >= math.MaxUint8 { - return PeerScore(math.MaxUint8) -======= if score < math.MinInt16 { score = math.MinInt16 ->>>>>>> 4d820ff4f (p2p: peer score should not wrap around (#8790)) } return PeerScore(score)