const NON_FINALIZED_STATE_CHANGE_BUFFER_SIZE: usize = 1_000;
Expand description
How many non-finalized block references to buffer in NonFinalizedBlocksListener
before blocking sends.
§Correctness
This should be large enough to typically avoid blocking the sender when the non-finalized state is full so
that the NonFinalizedBlocksListener
reliably receives updates whenever the non-finalized state changes.
It’s okay to occasionally miss updates when the buffer is full, as the new blocks in the missed change will be sent to the listener on the next change to the non-finalized state.