cuprate_blockchain::ops::block

Function get_block_complete_entry

Source
pub fn get_block_complete_entry(
    block_hash: &BlockHash,
    tables: &impl TablesIter,
) -> Result<BlockCompleteEntry, RuntimeError>
Expand description

Retrieve a BlockCompleteEntry 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.