Module cuprate_blockchain::ops::block
source · Expand description
Blocks functions.
Functions§
- Add a
VerifiedBlockInformationto the database. - Check if a block exists in the database.
- Retrieve a
ExtendedBlockHeaderfrom the database. - Same as
get_block_extended_headerbut with aBlockHeight. - Return the top/latest
ExtendedBlockHeaderfrom the database. - Retrieve a
BlockHeightvia itsBlockHash. - Retrieve a
BlockInfovia itsBlockHeight. - Remove the top/latest block from the database.