cmd/utils: remove deprecated command line flags (#22263)

This removes support for all deprecated flags except --rpc*.
This commit is contained in:
rene
2021-02-24 14:07:58 +01:00
committed by GitHub
parent f54dc4ab3d
commit 8e547eecd5
13 changed files with 53 additions and 333 deletions

View File

@ -121,7 +121,7 @@ func remoteConsole(ctx *cli.Context) error {
path = ctx.GlobalString(utils.DataDirFlag.Name)
}
if path != "" {
if ctx.GlobalBool(utils.LegacyTestnetFlag.Name) || ctx.GlobalBool(utils.RopstenFlag.Name) {
if ctx.GlobalBool(utils.RopstenFlag.Name) {
// Maintain compatibility with older Geth configurations storing the
// Ropsten database in `testnet` instead of `ropsten`.
legacyPath := filepath.Join(path, "testnet")