jay tseng
3 years ago
No known key found for this signature in database
GPG Key ID: 5A9D3063305E6427
1 changed files with
1 additions and
0 deletions
-
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 |
|
|
|
} |
|
|
|