Type Definition lightning_block_sync::UnboundedCache

source ·
pub type UnboundedCache = HashMap<BlockHash, ValidatedBlockHeader>;
Expand description

Unbounded cache of block headers keyed by block hash.

Trait Implementations§

Retrieves the block header keyed by the given block hash.
Called when a block has been connected to the best chain to ensure it is available to be disconnected later if needed. Read more
Called when a block has been disconnected from the best chain. Once disconnected, a block’s header is no longer needed and thus can be removed. Read more