Function zebra_state::spawn_init

source ยท
pub fn spawn_init(
    config: Config,
    network: &Network,
    max_checkpoint_height: Height,
    checkpoint_verify_concurrency_limit: usize,
) -> JoinHandle<(BoxService<Request, Response, BoxError>, ReadStateService, LatestChainTip, ChainTipChange)>
Expand description

Calls init with the provided Config and Network from a blocking task. Returns a [tokio::task::JoinHandle] with a boxed state service, a read state service, and receivers for state chain tip updates.