Skip to content

Commit fa16c89

Browse files
authored
core: use scheme-aware empty root in flushAlloc (#33168)
1 parent f23d506 commit fa16c89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/genesis.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ func flushAlloc(ga *types.GenesisAlloc, triedb *triedb.Database) (common.Hash, e
190190
return common.Hash{}, err
191191
}
192192
// Commit newly generated states into disk if it's not empty.
193-
if root != types.EmptyRootHash {
193+
if root != emptyRoot {
194194
if err := triedb.Commit(root, true); err != nil {
195195
return common.Hash{}, err
196196
}

0 commit comments

Comments
 (0)