-
Notifications
You must be signed in to change notification settings - Fork 2.6k
client/beefy: add some bounds on enqueued votes #12484
Comments
@acatangiu I will like to work on this |
am working on it |
Oh... I already started @MrishoLukamba |
Okey continue |
So, I am currently working on this, @acatangiu I am imploring the use of a BoundedBTreeMap for the buffer to hold votes There is a is it ok to split the function? or should I go ahead to make I am trying to ask so as to confirm if i am on the right track. @acatangiu |
Yes, the approach is good and you should put bounds on both |
You should also bound inner vec in Bounds sizes should be smth in the order of a few MBs for each map - just define some constants, document them and we can fine tune the value as a final detail. For the inner votes When bounds are reached:
|
Alright @acatangiu |
When BEEFY voter runs behind rest of voters it will enqueue gossiped votes and process them as it catches up.
We should introduce some bounds on this queue to not grow forever if voter is stuck - we should instead drop votes once bounds are hit.
The text was updated successfully, but these errors were encountered: