From 9df0a64611760b2485a70624b29d9c423301da81 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Mon, 7 Oct 2024 11:45:20 +0200 Subject: [PATCH] core/types: remove empty requests hash --- core/genesis.go | 4 +++- core/types/hashes.go | 3 --- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/core/genesis.go b/core/genesis.go index 33693b2169..8fef81a0a4 100644 --- a/core/genesis.go +++ b/core/genesis.go @@ -472,7 +472,9 @@ func (g *Genesis) toBlockWithRoot(root common.Hash) *types.Block { } } if conf.IsPrague(num, g.Timestamp) { - head.RequestsHash = &types.EmptyRequestsHash + emptyRequests := [][]byte{{0}} + rhash := types.CalcRequestsHash(emptyRequests) + head.RequestsHash = &rhash } } return types.NewBlock(head, &types.Body{Withdrawals: withdrawals}, nil, trie.NewStackTrie(nil)) diff --git a/core/types/hashes.go b/core/types/hashes.go index f9a37f12c3..43e9130fd1 100644 --- a/core/types/hashes.go +++ b/core/types/hashes.go @@ -41,9 +41,6 @@ var ( // EmptyWithdrawalsHash is the known hash of the empty withdrawal set. EmptyWithdrawalsHash = common.HexToHash("56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421") - // EmptyRequestsHash is the known hash of the empty requests set. - EmptyRequestsHash = common.HexToHash("e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855") - // EmptyVerkleHash is the known hash of an empty verkle trie. EmptyVerkleHash = common.Hash{} )