mirror of
https://github.com/tendermint/tendermint.git
synced 2026-03-27 12:05:02 +00:00
Merge branch 'mergify/bp/v0.35.x/pr-8790' into p2p-dialer-storage-change-35-backport
This commit is contained in:
@@ -1562,6 +1562,10 @@ func (p *peerInfo) Score() PeerScore {
|
||||
score -= int64(addr.DialFailures)
|
||||
}
|
||||
|
||||
if score < math.MinInt16 {
|
||||
score = math.MinInt16
|
||||
}
|
||||
|
||||
return PeerScore(score)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user