core: set empty BlockAccessListHash on Amsterdam genesis (#34774)

This commit is contained in:
Barnabas Busa 2026-04-21 10:03:39 +02:00 committed by GitHub
parent 23a6adbcee
commit 499762852c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 0 deletions

View file

@ -557,6 +557,9 @@ func (g *Genesis) toBlockWithRoot(root common.Hash) *types.Block {
if head.SlotNumber == nil {
head.SlotNumber = new(uint64)
}
if head.BlockAccessListHash == nil {
head.BlockAccessListHash = &types.EmptyBlockAccessListHash
}
}
}
return types.NewBlock(head, &types.Body{Withdrawals: withdrawals}, nil, trie.NewStackTrie(nil))

View file

@ -43,6 +43,10 @@ var (
// EmptyRequestsHash is the known hash of an empty request set, sha256("").
EmptyRequestsHash = common.HexToHash("e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855")
// EmptyBlockAccessListHash is the known hash of an empty block access list,
// keccak256(rlp(empty list)) = keccak256(0xc0).
EmptyBlockAccessListHash = common.HexToHash("1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347")
// EmptyVerkleHash is the known hash of an empty verkle trie.
EmptyVerkleHash = common.Hash{}