diff --git a/core/genesis.go b/core/genesis.go index 550f2e43c7..ca6e112b3c 100644 --- a/core/genesis.go +++ b/core/genesis.go @@ -556,6 +556,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)) diff --git a/core/types/hashes.go b/core/types/hashes.go index db8912a66f..5800ab68c3 100644 --- a/core/types/hashes.go +++ b/core/types/hashes.go @@ -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") + // EmptyBinaryHash is the known hash of an empty binary trie. EmptyBinaryHash = common.Hash{} )