This commit is contained in:
Sina Mahmoodi 2023-11-07 22:40:44 +03:00
parent dc1175e3e1
commit da8b36276f

View file

@ -293,7 +293,6 @@ func NewBlockChain(db ethdb.Database, cacheConfig *CacheConfig, genesis *Genesis
// Setup the genesis block, commit the provided genesis specification
// to database if the genesis block is not present yet, or load the
// stored one from database.
// TODO: pass in blockchainLogger here to catch genesis block and allocs
chainConfig, genesisHash, genesisErr := SetupGenesisBlockWithOverride(db, triedb, genesis, overrides, logger)
if _, ok := genesisErr.(*params.ConfigCompatError); genesisErr != nil && !ok {
return nil, genesisErr