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