mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
address nitpick
This commit is contained in:
parent
9f29f4243d
commit
e057dddd40
1 changed files with 3 additions and 3 deletions
|
|
@ -1871,9 +1871,9 @@ func SetEthConfig(ctx *cli.Context, stack *node.Node, cfg *ethconfig.Config) {
|
|||
if rawdb.ReadCanonicalHash(chaindb, 0) != (common.Hash{}) {
|
||||
cfg.Genesis = nil // fallback to db content
|
||||
|
||||
var genesis *core.Genesis
|
||||
var err error
|
||||
if genesis, err = core.ReadGenesis(chaindb); err != nil {
|
||||
//validate genesis has PoS enabled in block 0
|
||||
genesis, err := core.ReadGenesis(chaindb)
|
||||
if err != nil {
|
||||
Fatalf("Could not read genesis from database: %v", err)
|
||||
}
|
||||
if !genesis.Config.TerminalTotalDifficultyPassed {
|
||||
|
|
|
|||
Loading…
Reference in a new issue