From 9ed0e13c218e44d7fabd4d4de2ac2aeb228f3212 Mon Sep 17 00:00:00 2001 From: Paul Lange Date: Thu, 16 May 2024 13:28:59 +0200 Subject: [PATCH] Fix `TestRPCGetBlockOrHeader` --- internal/ethapi/api_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/internal/ethapi/api_test.go b/internal/ethapi/api_test.go index d35aa9bf80..7b47b0a079 100644 --- a/internal/ethapi/api_test.go +++ b/internal/ethapi/api_test.go @@ -1752,7 +1752,10 @@ func TestRPCGetBlockOrHeader(t *testing.T) { acc1Addr = crypto.PubkeyToAddress(acc1Key.PublicKey) acc2Addr = crypto.PubkeyToAddress(acc2Key.PublicKey) genesis = &core.Genesis{ - Config: params.TestChainConfig, + // Use a config which disables the Cel2 flag + // This is necessary because Cel2 enables sending of fees to the fee handler, + // which in turn changes the state tree which leads to changes in hashes. + Config: params.TestChainConfigNoCel2, Alloc: types.GenesisAlloc{ acc1Addr: {Balance: big.NewInt(params.Ether)}, acc2Addr: {Balance: big.NewInt(params.Ether)},