all: new empty trie with types.EmptyRootHash instead of null (#27230)

This commit is contained in:
rjl493456442
2023-05-11 10:19:42 +03:00
committed by GitHub
parent 7577b9c28f
commit a14301823e
25 changed files with 121 additions and 113 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ var (
BaseFee: big.NewInt(params.InitialBaseFee),
}
genesis = gspec.MustCommit(testdb)
unknownBlock = types.NewBlock(&types.Header{GasLimit: params.GenesisGasLimit, BaseFee: big.NewInt(params.InitialBaseFee)}, nil, nil, nil, trie.NewStackTrie(nil))
unknownBlock = types.NewBlock(&types.Header{Root: types.EmptyRootHash, GasLimit: params.GenesisGasLimit, BaseFee: big.NewInt(params.InitialBaseFee)}, nil, nil, nil, trie.NewStackTrie(nil))
)
// makeChain creates a chain of n blocks starting at and including parent.