Skip to main content

bootstrap

Function bootstrap 

Source
pub async fn bootstrap<P>(
    provider: P,
    registry_addr: Address,
    head: Arc<dyn HeadSource>,
    track_node_addresses: bool,
    metrics: Arc<Metrics>,
    boot: &BootRetry,
) -> Result<RegistryHandles>
where P: Provider + Clone + 'static,
Expand description

Enumerate CapacityBond once, then spawn the single watcher that keeps both projections current.

The snapshot-block read and the enumeration retry transient failures on boot’s budget; a deterministic fault or an exhausted budget fails the bootstrap.

track_node_addresses mirrors cache.node_to_node_pull_through_enabled.