reth_transaction_pool::maintain

Function maintain_transaction_pool_future

Source
pub fn maintain_transaction_pool_future<N, Client, P, St, Tasks>(
    client: Client,
    pool: P,
    events: St,
    task_spawner: Tasks,
    config: MaintainPoolConfig,
) -> BoxFuture<'static, ()>
where N: NodePrimitives, Client: StateProviderFactory + BlockReaderIdExt + ChainSpecProvider + Clone + 'static, P: TransactionPoolExt<Transaction: PoolTransaction<Consensus = N::SignedTx>> + 'static, St: Stream<Item = CanonStateNotification<N>> + Send + Unpin + 'static, Tasks: TaskSpawner + 'static,
Expand description

Returns a spawnable future for maintaining the state of the transaction pool.