zebra_state::service::read::find

Function non_finalized_state_contains_block_hash

source
pub fn non_finalized_state_contains_block_hash(
    non_finalized_state: &NonFinalizedState,
    hash: Hash,
) -> Option<KnownBlock>
Expand description

Returns the location of the block if present in the non-finalized state. Returns None if the block hash is not found in the non-finalized state.