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.