Skip to content

Commit a5203bb

Browse files
MariusVanDerWijdenHanWang233
authored andcommitted
tests: only activate merge on london rules (ethereum#25239)
1 parent 96b62e0 commit a5203bb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/state_test_util.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,8 @@ func (t *StateTest) RunNoVerify(subtest StateSubtest, vmconfig vm.Config, snapsh
220220
context := core.NewEVMBlockContext(block.Header(), nil, &t.json.Env.Coinbase)
221221
context.GetHash = vmTestBlockHash
222222
context.BaseFee = baseFee
223-
if t.json.Env.Random != nil {
223+
context.Random = nil
224+
if config.IsLondon(new(big.Int)) && t.json.Env.Random != nil {
224225
rnd := common.BigToHash(t.json.Env.Random)
225226
context.Random = &rnd
226227
context.Difficulty = big.NewInt(0)

0 commit comments

Comments
 (0)