Skip to main content

Module block

Module block 

Source
Expand description

Block functions.

Functionsยง

add_block_to_dynamic_tables
Add a [VerifiedBlockInformation] to the dynamic database (fjall).
add_blocks_to_tapes
Write a slice of contiguous blocks to the tapes database.
block_exists
Check if a block exists in the database.
get_block
Retrieve a [Block] via its BlockHeight.
get_block_by_hash
Retrieve a [Block] via its BlockHash.
get_block_complete_entry
Retrieve a [BlockCompleteEntry] from the database.
get_block_complete_entry_from_height
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.
pop_block
Remove the top/latest block from the database.