cuprate_blockchain::ops::block

Function get_block_extended_header_from_height

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

Same as get_block_extended_header but with a BlockHeight.

§Errors

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