fuel_core_p2p::service

Function new_service

source
pub fn new_service<V, B, T>(
    chain_id: ChainId,
    p2p_config: Config<NotInitialized>,
    shared_state: SharedState,
    request_receiver: Receiver<TaskRequest>,
    view_provider: V,
    block_importer: B,
    tx_pool: T,
) -> Service<V, T>
where V: AtomicView + 'static, V::LatestView: P2pDb, B: BlockHeightImporter, T: TxPool,