clear non priority queue when score is negative

This commit is contained in:
Diego 2024-04-09 23:45:09 +02:00
parent d9a60f339e
commit a6237bd1c1
No known key found for this signature in database
GPG Key ID: C9DAC9BF68D1F806
1 changed files with 1 additions and 0 deletions

View File

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