Function maintain_transaction_pool_conditional
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,
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