Function cuprate_blockchain::ops::block::block_exists
source · pub fn block_exists(
block_hash: &BlockHash,
table_block_heights: &impl DatabaseRo<BlockHeights>,
) -> Result<bool, RuntimeError>Expand description
Check if a block exists in the database.
§Errors
Note that this will never return Err(RuntimeError::KeyNotFound),
as in that case, Ok(false) will be returned.
Other errors may still occur.