async fn apply_finalized(
state: &mut L1State,
finalized: L1BlockInfoWithParent,
metrics: &L1ClientMetrics,
sender: &Sender<L1Event>,
)Expand description
Applies finalized to state if it advances the snapshot, updating the metric and
broadcasting NewFinalized. Never lowers the finalized block.
Also raises the head to the finalized block’s number if the head is behind it, since a finalized block always exists on L1 and thus is truthfully also the head, or below it.