clear non priority queue when score is negative
This commit is contained in:
parent
d9a60f339e
commit
a6237bd1c1
|
@ -663,6 +663,7 @@ proc onHeartbeat(g: GossipSub) {.raises: [].} =
|
|||
g.pruned(peer, t)
|
||||
g.mesh.removePeer(t, peer)
|
||||
prunes &= peer
|
||||
peer.clearNonPriorityQueue()
|
||||
if prunes.len > 0:
|
||||
let prune = RPCMsg(control: some(ControlMessage(
|
||||
prune: @[ControlPrune(
|
||||
|
|
Loading…
Reference in New Issue