use batch tx validation in eth validator #13383
Labels
A-tx-pool
Related to the transaction mempool
D-good-first-issue
Nice and easy! A great choice to get started
we currently create a new state provider per tx:
reth/crates/transaction-pool/src/validate/eth.rs
Lines 348 to 352 in fb64997
this could be optimized if we validate txs in batches and only open the latest state once.
this needs some changes so that we can cache the provider when iterating over a list of txs
cc @hai-rise
reth/crates/transaction-pool/src/validate/eth.rs
Lines 66 to 83 in fb64997
this could use the same provider for all txs, could easily do this if we flip these
Originally posted by @mattsse in #13382 (comment)
The text was updated successfully, but these errors were encountered: