Crate zksync_consensus_engine

Source
Expand description

Abstraction for interaction with the execution layer.

Modules§

testonly
Test-only utilities.

Structs§

BlockStoreState
State of the BlockStore: continuous range of blocks.
EngineManager
A wrapper around a EngineInterface which adds caching blocks in-memory and other useful utilities.
EngineManagerRunner
Runner of the EngineManager background tasks.
Transaction
A transaction propagated by the gossip network. Consensus layer does not interpret the transaction. It is the responsibility of the execution layer to interpret the transaction.

Enums§

Last
Last block in the block store (see BlockStoreState). Note that the commit qc is required in the case the block has been finalized by the consensus.

Traits§

EngineInterface
Defines the interface between the consensus layer and the execution layer. Implementations must propagate context cancellation.