Expand description
Writing blocks to the finalized and non-finalized states.
Structs§
- Block
Write 🔒Sender - A worker with a task that reads, validates, and writes blocks to the
finalized_state
ornon_finalized_state
and channels for sending it blocks. - Write
Block 🔒Worker Task - A worker task that reads, validates, and writes blocks to the
finalized_state
ornon_finalized_state
.
Enums§
- NonFinalized
Write Message - The message type for the non-finalized block write task channel.
Constants§
- PARENT_
ERROR_ 🔒MAP_ LIMIT - The maximum size of the parent error map.
Functions§
- log_
if_ 🔒mined_ by_ zebra - Log a message if this block was mined by Zebra.
- update_
latest_ 🔒chain_ channels - Update the
LatestChainTip
,ChainTipChange
, andnon_finalized_state_sender
channels with the latest non-finalizedChainTipBlock
andChain
. - validate_
and_ 🔒commit_ non_ finalized - Run contextual validation on the prepared block and add it to the non-finalized state if it is contextually valid.