Skip to main content

Module storage

Module storage 

Source
Expand description

This module defines consensus archive formats.

Finalized blocks are stored in a Hybrid store which merges a prunable archive (holding the most recently finalized blocks) with a lookup into the execution layer (used for blocks below the prunable retention window).

ModulesΒ§

hybrid πŸ”’
Hybrid is a prunable archive of finalized blocks fronting reth.

ConstantsΒ§

BUFFER_POOL_CAPACITY πŸ”’
BUFFER_POOL_PAGE_SIZE πŸ”’
DEFAULT_FINALIZED_BLOCKS_RETENTION πŸ”’
Default number of finalized blocks (relative to reth’s finalized watermark) to keep cached in the prunable archive.
FINALIZATIONS_BY_HEIGHT πŸ”’
FREEZER_TABLE_RESIZE_CHUNK_SIZE πŸ”’
FREEZER_TABLE_RESIZE_FREQUENCY πŸ”’
FREEZER_VALUE_COMPRESSION πŸ”’
FREEZER_VALUE_TARGET_SIZE πŸ”’
IMMUTABLE_ITEMS_PER_SECTION πŸ”’
MAX_REPAIR πŸ”’
PRUNABLE_FINALIZED_BLOCKS πŸ”’
PRUNABLE_ITEMS_PER_SECTION πŸ”’
REPLAY_BUFFER πŸ”’
WRITE_BUFFER πŸ”’

FunctionsΒ§

find_last_finalized_marker
Finds the latest finalization certificate backed by finalized execution storage.
init_finalizations_archive πŸ”’
init_finalized_blocks πŸ”’
Initialize the Hybrid finalized blocks store backed by a prunable archive (for retention_blocks recent items) and a reth provider lookup (for everything older).
init_prunable_finalized_blocks_archive πŸ”’
Initialize the prunable archive that holds recently finalized blocks.