pub fn init(
    config: Config,
    network: Network,
) -> (
    BoxService<Request, Response, BoxError>,
    LatestChainTip,
    ChainTipChange,
) {
    let (state_service, latest_chain_tip, chain_tip_change) = StateService::new(config, network);

    (
        BoxService::new(state_service),
        latest_chain_tip,
        chain_tip_change,
    )
}
/// Initialize a state service from the provided [`Config`].
/// Returns a boxed state service, and receivers for state chain tip updates.
///
/// Each `network` has its own separate on-disk database.
///
/// To share access to the state, wrap the returned service in a `Buffer`. It's
/// possible to construct multiple state services in the same application (as
/// long as they, e.g., use different storage locations), but doing so is
/// probably not what you want.
Initialize a state service from the provided [`Config`].
Returns a boxed state service, and receivers for state chain tip updates.

Each `network` has its own separate on-disk database.

To share access to the state, wrap the returned service in a `Buffer`. It's
possible to construct multiple state services in the same application (as
long as they, e.g., use different storage locations), but doing so is
probably not what you want.
Initialize a state service from the provided [ ` Config ` ] . Returns a boxed state service and receivers for state chain tip updates . Each ` network ` has its own separate on - disk database . To share access to the state wrap the returned service in a ` Buffer ` . It ' s possible to construct multiple state services in the same application ( as long as they e . g . use different storage locations ) but doing so is probably not what you want .
pub fn init(
    config: Config,
    network: Network,
) -> (
    BoxService<Request, Response, BoxError>,
    LatestChainTip,
    ChainTipChange,
) {
    let (state_service, latest_chain_tip, chain_tip_change) = StateService::new(config, network);
    (
        BoxService::new(state_service),
        latest_chain_tip,
        chain_tip_change,
    )
}
pub fn init ( config : Config , network : Network , ) -> ( BoxService < Request , Response , BoxError > , LatestChainTip , ChainTipChange , ) { let ( state_service , latest_chain_tip , chain_tip_change ) = StateService :: new ( config , network ) ; ( BoxService :: new ( state_service ) , latest_chain_tip , chain_tip_change , ) }
Initialize a state service from the provided [`Config`].
Initialize a state service from the provided [ ` Config ` ] .
config
Config
network
Network