Function block_info

Source
pub fn block_info<C>(
    chain: Option<C>,
    db: &ZebraDb,
    hash_or_height: HashOrHeight,
) -> Option<BlockInfo>
where C: AsRef<Chain>,
Expand description

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