Function zebra_state::service::read::block::block_header

source ·
pub fn block_header<C>(
    chain: Option<C>,
    db: &ZebraDb,
    hash_or_height: HashOrHeight
) -> Option<Arc<Header>>
where C: AsRef<Chain>,
Expand description

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