evict_expired_aa_txs

Function evict_expired_aa_txs 

Source
pub async fn evict_expired_aa_txs<P, C>(pool: P, client: C)
where P: TransactionPool<Transaction = TempoPooledTransaction> + 'static, C: CanonStateSubscriptions + 'static,
Expand description

Spawns a background task that evicts expired AA transactions.

  • Listens for new blocks to get chain timestamp
  • Listens for new transactions to track valid_before timestamps
  • Evicts transactions when valid_before <= tip_timestamp