diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go index bf0c5d33c8..fbb030be9c 100644 --- a/cmd/utils/flags.go +++ b/cmd/utils/flags.go @@ -887,6 +887,7 @@ func splitAndTrim(input string) []string { // command line flags, returning empty if the HTTP endpoint is disabled. func setHTTP(ctx *cli.Context, cfg *node.Config) { if ctx.GlobalBool(LegacyRPCEnabledFlag.Name) && cfg.HTTPHost == "" { + log.Warn("The flag --rpc is deprecated and will be removed in the future, please use --http") cfg.HTTPHost = "127.0.0.1" if ctx.GlobalIsSet(LegacyRPCListenAddrFlag.Name) { cfg.HTTPHost = ctx.GlobalString(LegacyRPCListenAddrFlag.Name) diff --git a/internal/debug/flags.go b/internal/debug/flags.go index 9e5f8d252f..70c31cf0ef 100644 --- a/internal/debug/flags.go +++ b/internal/debug/flags.go @@ -86,26 +86,27 @@ var ( Name: "trace", Usage: "Write execution trace to the given file", } - legacyPprofPortFlag = cli.IntFlag{ // (Deprecated April 2020) + // (Deprecated April 2020) + legacyPprofPortFlag = cli.IntFlag{ Name: "pprofport", Usage: "pprof HTTP server listening port (deprecated, use --pprof.port)", Value: 6060, } - legacyPprofAddrFlag = cli.StringFlag{ // (Deprecated April 2020) + legacyPprofAddrFlag = cli.StringFlag{ Name: "pprofaddr", Usage: "pprof HTTP server listening interface (deprecated, use --pprof.addr)", Value: "127.0.0.1", } - legacyMemprofilerateFlag = cli.IntFlag{ // (Deprecated April 2020) + legacyMemprofilerateFlag = cli.IntFlag{ Name: "memprofilerate", Usage: "Turn on memory profiling with the given rate (deprecated, use --pprof.memprofilerate)", Value: runtime.MemProfileRate, } - legacyBlockprofilerateFlag = cli.IntFlag{ // (Deprecated April 2020) + legacyBlockprofilerateFlag = cli.IntFlag{ Name: "blockprofilerate", Usage: "Turn on block profiling with the given rate (deprecated, use --pprof.blockprofilerate)", } - legacyCpuprofileFlag = cli.StringFlag{ // (Deprecated April 2020) + legacyCpuprofileFlag = cli.StringFlag{ Name: "cpuprofile", Usage: "Write CPU profile to the given file (deprecated, use --pprof.cpuprofile)", }