Crate zksync_consensus_storage
source ·Expand description
Abstraction for persistent data storage. It provides schema-aware type-safe database access.
Modules§
- Test-only utilities.
Structs§
- A wrapper around a PersistentBatchStore.
- State of the
BatchStore
: continuous range of batches. - A wrapper around a PersistentBlockStore which adds caching blocks in-memory and other useful utilities.
- Runner of the BlockStore background tasks.
- State of the
BlockStore
: continuous range of blocks. - A payload of a proposed block which is not known to be finalized yet. Replicas have to persist such proposed payloads for liveness: consensus may finalize a block without knowing a payload in case of reproposals. Currently we do not store the BlockHeader, because it is always available in the LeaderPrepare message.
- The struct that contains the replica state to be persisted.
Traits§
- Trait for the shared state of batches between the consensus and the execution layer.
- Storage of a continuous range of L2 blocks.
- Storage for
ReplicaState
.