Skip to main content

finalize_root_blocks_and_forget_evicted

Function finalize_root_blocks_and_forget_evicted 

Source
fn finalize_root_blocks_and_forget_evicted(
    finalized_state: &mut FinalizedState,
    non_finalized_state: &mut NonFinalizedState,
    prev_finalized_note_commitment_trees: &mut Option<NoteCommitmentTrees>,
    non_finalized_rejected_sender: &UnboundedSender<NonFinalizedWriteOutcome>,
    chain_tip_sender: &mut ChainTipSender,
    non_finalized_state_sender: &Sender<NonFinalizedState>,
    backup_dir_path: Option<&Path>,
)
Expand description

Finalizes root blocks after a commit, then reports and publishes any forks that finalizing evicted, because NonFinalizedState::finalize re-inserts the remaining chains under the fork limits.