Function cuprate_blockchain::ops::block::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.