pub(crate) async fn prefetch_stake_table_events(
fetcher: &Fetcher,
l1_client: &L1Client,
l1_genesis: &L1BlockInfo,
stake_table_contract: Option<Address>,
) -> Result<()>Expand description
Scans the whole L1 contract history when nothing is persisted yet, keeping every
bootstrap_epoch_window step bounded to one epoch instead of loading that scan onto
the first step, which silently downgrades the node to a stale epoch window when it
exceeds its timeout. Untimed: an unreachable L1 panics after
l1_events_max_retry_duration.