cuprate_blockchain::ops::block

Function get_block_extended_header_top

Source
pub fn get_block_extended_header_top(
    tables: &impl Tables,
) -> Result<(ExtendedBlockHeader, BlockHeight), RuntimeError>
Expand description

Return the top/latest ExtendedBlockHeader from the database.

§Errors

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