Function get_block

Source
pub fn get_block(
    tables: &impl Tables,
    block_height: &BlockHeight,
) -> DbResult<Block>
Expand description

Retrieve a Block via its BlockHeight.

§Errors

This function returns cuprate_database::RuntimeError::KeyNotFound if the input (if applicable) doesn’t exist or other RuntimeError’s on database errors.