cuprate_blockchain::ops::block

Function get_block_extended_header_top

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

Return the top/latest ExtendedBlockHeader from the database.

§Errors

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