core: don't check genesis hash for no tries
This commit is contained in:
parent
ccd7a44be0
commit
74d20546c3
@ -281,7 +281,7 @@ func SetupGenesisBlockWithOverride(db ethdb.Database, triedb *triedb.Database, g
|
|||||||
// is initialized with an external ancient store. Commit genesis state
|
// is initialized with an external ancient store. Commit genesis state
|
||||||
// in this case.
|
// in this case.
|
||||||
header := rawdb.ReadHeader(db, stored, 0)
|
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 {
|
if genesis == nil {
|
||||||
genesis = DefaultBSCGenesisBlock()
|
genesis = DefaultBSCGenesisBlock()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user