zebra_state

Function init_test_services

source
pub fn init_test_services(
    network: &Network,
) -> (Buffer<BoxService<Request, Response, BoxError>, Request>, ReadStateService, LatestChainTip, ChainTipChange)
Expand description

Initializes a state service with an ephemeral Config and a buffer with a single slot, then returns the read-write service, read-only service, and tip watch channels.

This can be used to create a state service for testing. See also init.