mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-02-19 03:04:27 -05:00
perf(prewarm): disable balance check for prewarming transactions (#21941)
Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user