perf(prewarm): disable balance check for prewarming transactions (#21941)

Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
Matthias Seitz
2026-02-07 19:40:41 +01:00
committed by GitHub
parent db01c10a1d
commit 95ed377135
2 changed files with 5 additions and 1 deletions

View File

@@ -27,7 +27,7 @@ reth-primitives-traits = { workspace = true, features = ["rayon", "dashmap"] }
reth-ethereum-primitives.workspace = true
reth-provider.workspace = true
reth-prune.workspace = true
reth-revm.workspace = true
reth-revm = { workspace = true, features = ["optional-balance-check"] }
reth-stages-api.workspace = true
reth-tasks.workspace = true
reth-trie-parallel.workspace = true

View File

@@ -490,6 +490,10 @@ where
// doesn't match what's on chain.
evm_env.cfg_env.disable_nonce_check = true;
// disable the balance check so that transactions from senders who were funded by earlier
// transactions in the block can still be prewarmed
evm_env.cfg_env.disable_balance_check = true;
// create a new executor and disable nonce checks in the env
let spec_id = *evm_env.spec_id();
let mut evm = evm_config.evm_with_env(state_provider, evm_env);