Expand description
Writing blocks to the finalized and non-finalized states.
Constantsยง
- The maximum size of the parent error map.
Functionsยง
- Log a message if this block was mined by Zebra.
- Update the
LatestChainTip
,ChainTipChange
, andnon_finalized_state_sender
channels with the latest non-finalizedChainTipBlock
andChain
. - Run contextual validation on the prepared block and add it to the non-finalized state if it is contextually valid.
- 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
.