From 0a55b9731c0d80a54fdad1e8c836a4167c079c7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Szil=C3=A1gyi?= Date: Mon, 16 May 2022 08:27:30 +0300 Subject: [PATCH] cmd/utils: add deprecation warning for Rinkeby --- cmd/utils/flags.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go index 161130013..53466c695 100644 --- a/cmd/utils/flags.go +++ b/cmd/utils/flags.go @@ -1724,6 +1724,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 }