fuel_core_txpool

Function new_service

source
pub fn new_service<P2P, BlockImporter, PSProvider, PSView, ConsensusParamsProvider, GasPriceProvider, WasmChecker>(
    chain_id: ChainId,
    config: Config,
    p2p: P2P,
    block_importer: BlockImporter,
    ps_provider: PSProvider,
    consensus_parameters_provider: ConsensusParamsProvider,
    current_height: BlockHeight,
    gas_price_provider: GasPriceProvider,
    wasm_checker: WasmChecker,
) -> Service<PSView>
where P2P: P2PSubscriptions<GossipedTransaction = TransactionGossipData> + P2PRequests, PSProvider: AtomicView<LatestView = PSView> + 'static, PSView: TxPoolPersistentStorage, ConsensusParamsProvider: ConsensusParametersProvider, GasPriceProvider: GasPriceProviderTrait, WasmChecker: WasmCheckerTrait, BlockImporter: BlockImporterTrait,