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,
) -> Result<ExtendedBlockHeader, RuntimeError>
Expand description

Same as get_block_extended_header but with a BlockHeight.

§Errors

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