diff --git a/internal/p2p/peermanager.go b/internal/p2p/peermanager.go index c6b4c8635..30db47795 100644 --- a/internal/p2p/peermanager.go +++ b/internal/p2p/peermanager.go @@ -891,7 +891,10 @@ func (m *PeerManager) processPeerEvent(ctx context.Context, pu PeerUpdate) { case PeerStatusBad: m.store.peers[pu.NodeID].MutableScore-- case PeerStatusGood: - m.store.peers[pu.NodeID].MutableScore++ + // The persistent peer rank won't be affected by the score update. + if m.store.peers[pu.NodeID].MutableScore < int64(MaxPeerScoreNotPersistent) { + m.store.peers[pu.NodeID].MutableScore++ + } } }