cuprate_blockchain::ops::block

Function get_block_info

Source
pub fn get_block_info(
    block_height: &BlockHeight,
    table_block_infos: &impl DatabaseRo<BlockInfos>,
) -> DbResult<BlockInfo>
Expand description

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