Function get_block_by_hash

Source
pub fn get_block_by_hash(
    tables: &impl Tables,
    block_hash: &BlockHash,
) -> DbResult<Block>
Expand description

Retrieve a Block 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.