mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
Merge branch 'enhance_some_comment' of https://github.com/CoreyLin/go-ethereum into enhance_some_comment
This commit is contained in:
commit
5d4baf2289
1 changed files with 2 additions and 1 deletions
|
|
@ -176,8 +176,9 @@ func SetupGenesisBlock(db ethdb.Database, genesis *Genesis) (*params.ChainConfig
|
|||
}
|
||||
}
|
||||
|
||||
// Get the existing chain configuration.
|
||||
// Get the new chain configuration for genesis block.
|
||||
newcfg := genesis.configOrDefault(stored)
|
||||
// Get the existing chain configuration for genesis block.
|
||||
storedcfg := rawdb.ReadChainConfig(db, stored)
|
||||
if storedcfg == nil {
|
||||
log.Warn("Found genesis block without chain config")
|
||||
|
|
|
|||
Loading…
Reference in a new issue