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