reth icon indicating copy to clipboard operation
reth copied to clipboard

perf(tx-pool): Optimize batch tx validation by separating checks

Open yongkangc opened this issue 1 month ago • 2 comments
trafficstars

closes: https://github.com/paradigmxyz/reth/issues/18527

This PR optimizes batch transaction validation by refactoring the TransactionValidator trait.

The validation process is now split into two distinct steps: validate_transaction_stateless and validate_transaction_stateful.

TheTransactionValidationTaskExecutor now

  1. runs stateless checks on all transactions first
  2. uses a single state provider to perform stateful validation only on those that pass, minimizin state access.

yongkangc avatar Sep 25 '25 04:09 yongkangc

hey @klkvr just did an initial draft to see if this is something u had in mind?

yongkangc avatar Sep 25 '25 05:09 yongkangc

hey @klkvr just addressed your comments in the PR. Sorry dropped the ball on this, let me know what u think

yongkangc avatar Oct 27 '25 10:10 yongkangc