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: Adrian Catangiu <[email protected]>
parent
4be3ddaa
Please register or sign in to comment