Browse Source

add comment

pull/8137/head
jay tseng 3 years ago
parent
commit
ef043b9d62
No known key found for this signature in database GPG Key ID: 5A9D3063305E6427
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      internal/p2p/peermanager.go

+ 1
- 0
internal/p2p/peermanager.go View File

@ -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
}


Loading…
Cancel
Save