pub async fn maintain_transaction_pool_conditional<N, Pool, St>(
pool: Pool,
events: St,
)where
N: NodePrimitives,
Pool: TransactionPool,
<Pool as TransactionPool>::Transaction: MaybeConditionalTransaction,
St: Stream<Item = CanonStateNotification<N>> + Send + Unpin + 'static,
Available on crate features
node-api
and node
only.Expand description
Maintains the state of the conditional tx in the transaction pool by handling new blocks and reorgs.
This listens for any new blocks and reorgs and updates the conditional txs in the transaction pool’s state accordingly