You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should I cap the capacity of solution_response_senders cache to u32 max ? or do you recommed something else?
If you look carefully, you'll see that the only reason block_authoring_delay is converted into u64 is because it is originally Slot type that can be converted into u64 easily. Moreover, it is a very small number in practice (4) so you will never ever need to worry about its size, simply do this:
let solution_response_senders_capacity =
u32::try_from(block_authoring_delay).expect("Always a tiny constant in the protocol; qed");
Similar to paritytech/substrate#13802
The text was updated successfully, but these errors were encountered: