zebra_state::service::write

Function validate_and_commit_non_finalized

source
pub(crate) fn validate_and_commit_non_finalized(
    finalized_state: &ZebraDb,
    non_finalized_state: &mut NonFinalizedState,
    prepared: SemanticallyVerifiedBlock,
) -> Result<(), CommitSemanticallyVerifiedError>
Expand description

Run contextual validation on the prepared block and add it to the non-finalized state if it is contextually valid.