Open imotai opened 5 months ago
As JournaledState now has a warm_preloaded_addresses we dont need to preload accounts of coinbase and blockhash. revm/crates/revm/src/journaled_state.rs
Line 36 in 6df5d20
pub warm_preloaded_addresses: HashSet
Lines 32 to 50 in 6df5d20
// load coinbase // EIP-3651: Warm COINBASE. Starts the COINBASE address warm if SPEC::enabled(SHANGHAI) { context.evm.inner.journaled_state.initial_account_load( context.evm.inner.env.block.coinbase, &[], &mut context.evm.inner.db, )?; }
COINBASE
// Load blockhash storage address // EIP-2935: Serve historical block hashes from state
As JournaledState now has a warm_preloaded_addresses we dont need to preload accounts of coinbase and blockhash. revm/crates/revm/src/journaled_state.rs
Line 36 in 6df5d20
pub warm_preloaded_addresses: HashSet
, These lines should be replaced with journal_state.warm_preloaded_addresses.insert(). revm/crates/revm/src/handler/mainnet/pre_execution.rsLines 32 to 50 in 6df5d20
// load coinbase // EIP-3651: Warm COINBASE. Starts the
COINBASE
address warm if SPEC::enabled(SHANGHAI) { context.evm.inner.journaled_state.initial_account_load( context.evm.inner.env.block.coinbase, &[], &mut context.evm.inner.db, )?; }// Load blockhash storage address // EIP-2935: Serve historical block hashes from state