Skip to main content

apply_head

Function apply_head 

Source
async fn apply_head(
    state: &mut L1State,
    head: u64,
    metrics: &L1ClientMetrics,
    sender: &Sender<L1Event>,
)
Expand description

Applies head to state if it advances the snapshot, updating the metric and broadcasting NewHead. Never lowers the head.