zebra_state::service::read::find

Function height_by_hash

source
pub fn height_by_hash<C>(
    chain: Option<C>,
    db: &ZebraDb,
    hash: Hash,
) -> Option<Height>
where C: AsRef<Chain>,
Expand description

Return the height for the block at hash, if hash is in chain or db.