mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-23 13:16:42 +00:00
cmd/utils: default to non-nil genesis for mainnet
This commit is contained in:
parent
a49766cb23
commit
cbff538808
1 changed files with 1 additions and 0 deletions
|
|
@ -1865,6 +1865,7 @@ func SetEthConfig(ctx *cli.Context, stack *node.Node, cfg *ethconfig.Config) {
|
||||||
cfg.Miner.GasPrice = big.NewInt(1)
|
cfg.Miner.GasPrice = big.NewInt(1)
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
cfg.Genesis = core.DefaultGenesisBlock()
|
||||||
if cfg.NetworkId == 1 {
|
if cfg.NetworkId == 1 {
|
||||||
SetDNSDiscoveryDefaults(cfg, params.MainnetGenesisHash)
|
SetDNSDiscoveryDefaults(cfg, params.MainnetGenesisHash)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue