keep D peer when pruning for oversubscription
This commit is contained in:
parent
712bab2c64
commit
dc6af4bbe6
@ -715,7 +715,7 @@ func (gs *GossipSubRouter) heartbeat() {
|
||||
|
||||
// We keep the first D_score peers by score and the remaining up to D_lo randomly
|
||||
shufflePeers(plst[GossipSubDscore:])
|
||||
for _, p := range plst[GossipSubDlo:] {
|
||||
for _, p := range plst[GossipSubD:] {
|
||||
log.Debugf("HEARTBEAT: Remove mesh link to %s in %s", p, topic)
|
||||
prunePeer(p)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user