Skip to main content

any_block

Function any_block 

Source
pub fn any_block<'a, C: AsRef<Chain> + 'a>(
    chains: impl Iterator<Item = &'a C>,
    db: &ZebraDb,
    hash_or_height: HashOrHeight,
) -> Option<Arc<Block>>
Expand description

Returns the Block with block::Hash or Height, if it exists in the non-finalized chains or finalized db.