Skip to content

Commit

Permalink
Revert "fix(eip2935): Preload blockchash storage address (#1395)"
Browse files Browse the repository at this point in the history
This reverts commit aeefcda.
  • Loading branch information
rakita committed May 16, 2024
1 parent 1342fc8 commit 3b934a2
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions crates/revm/src/handler/mainnet/pre_execution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ use crate::{
primitives::{
db::Database,
Account, EVMError, Env, Spec,
SpecId::{CANCUN, PRAGUE, SHANGHAI},
TransactTo, BLOCKHASH_STORAGE_ADDRESS, U256,
SpecId::{CANCUN, SHANGHAI},
TransactTo, U256,
},
Context, ContextPrecompiles,
};
Expand Down Expand Up @@ -39,16 +39,6 @@ pub fn load_accounts<SPEC: Spec, EXT, DB: Database>(
)?;
}

// Load blockhash storage address
// EIP-2935: Serve historical block hashes from state
if SPEC::enabled(PRAGUE) {
context.evm.inner.journaled_state.initial_account_load(
BLOCKHASH_STORAGE_ADDRESS,
&[],
&mut context.evm.inner.db,
)?;
}

context.evm.load_access_list()?;
Ok(())
}
Expand Down

0 comments on commit 3b934a2

Please sign in to comment.