Skip to main content

forget_evicted_blocks

Function forget_evicted_blocks 

Source
fn forget_evicted_blocks(
    non_finalized_state: &mut NonFinalizedState,
    non_finalized_rejected_sender: &UnboundedSender<NonFinalizedWriteOutcome>,
) -> bool
Expand description

Sends the hashes of blocks evicted from the non-finalized state on non_finalized_rejected_sender, so the state service accepts them again if the network extends their chain.

Returns true if any blocks were evicted.