Skip to content

Commit

Permalink
Merge branch 'eip-2935' of github.com:s1na/go-ethereum into eip-2935
Browse files Browse the repository at this point in the history
  • Loading branch information
s1na committed May 2, 2024
2 parents b9b86ef + f3a36ff commit 86300d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/evm/internal/t8ntool/execution.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ func (pre *Prestate) Apply(vmConfig vm.Config, chainConfig *params.ChainConfig,
// insert all parent hashes in the contract
for i, h := range pre.Env.BlockHashes {
n := uint64(i)
if n >= pre.Env.Number || n < pre.Env.Number-257 {
if n >= pre.Env.Number || pre.Env.Number > (n+params.HistoryServeWindow) {
continue
}
core.ProcessParentBlockHash(statedb, n, h)
Expand Down

0 comments on commit 86300d2

Please sign in to comment.