async fn projected_first_l1_batch(
    storage: &mut Connection<'_, Core>,
) -> anyhow::Result<L1BatchNumber> {
    let snapshot_recovery = storage
        .snapshot_recovery_dal()
        .get_applied_snapshot_status()
        .await?;
    Ok(snapshot_recovery.map_or(L1BatchNumber(0), |recovery| recovery.l1_batch_number + 1))
}
Returns the projected number of the first locally available L1 batch. The L1 batch is **not**
guaranteed to be present in the storage!
core/node/node_sync/src/batch_status_updater/mod.rs