Skip to content

Commit

Permalink
Merge pull request ethereum#24884 from karalabe/deprecate-rinkeby
Browse files Browse the repository at this point in the history
cmd/utils: add deprecation warning for Rinkeby
  • Loading branch information
karalabe authored and jagdeep sidhu committed May 31, 2022
1 parent c7f7e48 commit 907c0fa
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cmd/utils/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -1759,6 +1759,16 @@ func SetEthConfig(ctx *cli.Context, stack *node.Node, cfg *ethconfig.Config) {
cfg.Genesis = core.DefaultSepoliaGenesisBlock()
SetDNSDiscoveryDefaults(cfg, params.SepoliaGenesisHash)
case ctx.GlobalBool(RinkebyFlag.Name):
log.Warn("")
log.Warn("--------------------------------------------------------------------------------")
log.Warn("Please note, Rinkeby has been deprecated. It will still work for the time being,")
log.Warn("but there will be no further hard-forks shipped for it. Eventually the network")
log.Warn("will be permanently halted after the other networks transition through the merge")
log.Warn("and prove stable enough. For the most future proof testnet, choose Sepolia as")
log.Warn("your replacement environment (--sepolia instead of --rinkeby).")
log.Warn("--------------------------------------------------------------------------------")
log.Warn("")

if !ctx.GlobalIsSet(NetworkIdFlag.Name) {
cfg.NetworkId = 4
}
Expand Down

0 comments on commit 907c0fa

Please sign in to comment.