address nitpick

This commit is contained in:
Jared Wasinger 2023-11-07 15:30:41 +08:00
parent 9f29f4243d
commit e057dddd40

View file

@ -1871,9 +1871,9 @@ func SetEthConfig(ctx *cli.Context, stack *node.Node, cfg *ethconfig.Config) {
if rawdb.ReadCanonicalHash(chaindb, 0) != (common.Hash{}) { if rawdb.ReadCanonicalHash(chaindb, 0) != (common.Hash{}) {
cfg.Genesis = nil // fallback to db content cfg.Genesis = nil // fallback to db content
var genesis *core.Genesis //validate genesis has PoS enabled in block 0
var err error genesis, err := core.ReadGenesis(chaindb)
if genesis, err = core.ReadGenesis(chaindb); err != nil { if err != nil {
Fatalf("Could not read genesis from database: %v", err) Fatalf("Could not read genesis from database: %v", err)
} }
if !genesis.Config.TerminalTotalDifficultyPassed { if !genesis.Config.TerminalTotalDifficultyPassed {