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Β§
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
Hybridfinalized blocks store backed by a prunable archive (forretention_blocksrecent items) and a reth provider lookup (for everything older). - init_
prunable_ πfinalized_ blocks_ archive - Initialize the prunable archive that holds recently finalized blocks.