Function cuprate_blockchain::ops::block::get_block_height
source · pub fn get_block_height(
block_hash: &BlockHash,
table_block_heights: &impl DatabaseRo<BlockHeights>,
) -> Result<BlockHeight, RuntimeError>
Expand description
Retrieve a BlockHeight
via its BlockHash
.
§Errors
This function returns RuntimeError::KeyNotFound
if the input (if applicable) doesn’t exist or other RuntimeError
’s on database errors.