From fa16c89bfd9b923989fa8a3add530c391f30b309 Mon Sep 17 00:00:00 2001 From: Bashmunta Date: Thu, 13 Nov 2025 10:15:44 +0200 Subject: [PATCH] core: use scheme-aware empty root in flushAlloc (#33168) --- core/genesis.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/genesis.go b/core/genesis.go index d0d490874d..7d640c8cae 100644 --- a/core/genesis.go +++ b/core/genesis.go @@ -190,7 +190,7 @@ func flushAlloc(ga *types.GenesisAlloc, triedb *triedb.Database) (common.Hash, e return common.Hash{}, err } // Commit newly generated states into disk if it's not empty. - if root != types.EmptyRootHash { + if root != emptyRoot { if err := triedb.Commit(root, true); err != nil { return common.Hash{}, err }