fuel_core_sync::service

Function new_service

source
pub fn new_service<P, E, C>(
    current_fuel_block_height: BlockHeight,
    p2p: P,
    executor: E,
    consensus: C,
    params: Config,
) -> Result<ServiceRunner<SyncTask<P, E, C>>>
where P: PeerToPeerPort + Send + Sync + 'static, E: BlockImporterPort + Send + Sync + 'static, C: ConsensusPort + Send + Sync + 'static,
Expand description

Creates an instance of runnable sync service.