Skip to content

Commit

Permalink
core: don't check genesis hash for no tries
Browse files Browse the repository at this point in the history
  • Loading branch information
weiihann authored and buddh0 committed Mar 20, 2024
1 parent ccd7a44 commit 74d2054
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ func SetupGenesisBlockWithOverride(db ethdb.Database, triedb *triedb.Database, g
// is initialized with an external ancient store. Commit genesis state
// in this case.
header := rawdb.ReadHeader(db, stored, 0)
if header.Root != types.EmptyRootHash && !triedb.Initialized(header.Root) {
if header.Root != types.EmptyRootHash && !triedb.Initialized(header.Root) && !triedb.Config().NoTries {
if genesis == nil {
genesis = DefaultBSCGenesisBlock()
}
Expand Down

0 comments on commit 74d2054

Please sign in to comment.