Expand description
Writing blocks to the finalized and non-finalized states.
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.
- write_
blocks_ from_ channels - Reads blocks from the channels, writes them to the
finalized_state
ornon_finalized_state
, sends any errors on theinvalid_block_reset_sender
, then updates thechain_tip_sender
andnon_finalized_state_sender
.