Skip to main content

init_node_state

Function init_node_state 

Source
pub(crate) async fn init_node_state<P>(
    genesis: &Genesis,
    network_config: &NetworkConfig<SeqTypes>,
    l1_params: L1Params,
    catchup: CatchupParams,
    persistence: P,
    metrics: &dyn Metrics,
) -> Result<NodeStateParts<P>>
Expand description

The epoch layout is read from genesis, not network_config, so a caller that skips apply_genesis_overrides cannot silently start with epoch_height = 0.