Module block

Source
Expand description

Block functions.

Functions§

add_block
Add a VerifiedBlockInformation to the database.
block_exists
Check if a block exists in the database.
get_block_blob_with_tx_indexes
Retrieve a block’s raw bytes, the index of the miner transaction and the number of non miner-txs in the block.
get_block_complete_entry
Retrieve a BlockCompleteEntry from the database.
get_block_extended_header
Retrieve a ExtendedBlockHeader from the database.
get_block_extended_header_from_height
Same as get_block_extended_header but with a BlockHeight.
get_block_extended_header_top
Return the top/latest ExtendedBlockHeader from the database.
get_block_height
Retrieve a BlockHeight via its BlockHash.
get_block_info
Retrieve a BlockInfo via its BlockHeight.
pop_block
Remove the top/latest block from the database.