Commit 91e6de05 authored by dharjeezy's avatar dharjeezy Committed by GitHub
Browse files

client/beefy: add some bounds on enqueued votes (#12562)



Introduce bounds on the justifications and votes queues, so they do not grow forever if voter cannot make progress and consume from them. When bounds are hit, new votes or justifications get dropped.

* use a BTreeMap and check for bounds

* cargo fmt

* use usize

Co-authored-by: default avatarAdrian Catangiu <[email protected]>
parent 4be3ddaa
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment