diff --git a/internal/p2p/peermanager.go b/internal/p2p/peermanager.go index 30db47795..7c0fa6130 100644 --- a/internal/p2p/peermanager.go +++ b/internal/p2p/peermanager.go @@ -1298,6 +1298,7 @@ func (p *peerInfo) Score() PeerScore { return 0 } + // sanity check, the MutableScore already has a cap. if score >= math.MaxUint8 { return MaxPeerScoreNotPersistent }