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

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

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