zebra_state::service::check

Function block_commitment_is_valid_for_chain_history

source
pub(crate) fn block_commitment_is_valid_for_chain_history(
    block: Arc<Block>,
    network: &Network,
    history_tree: &HistoryTree,
) -> Result<(), ValidateContextError>
Expand description

Check that block is contextually valid for network, using the history_tree up to and including the previous block.