cmd/utils: print warning when --rpc.enabledeprecatedpersonal is used

This commit is contained in:
Felix Lange 2024-10-31 14:06:19 +01:00
parent ceb7fee2a1
commit 6438f5a33b
2 changed files with 4 additions and 1 deletions

View file

@ -1394,6 +1394,9 @@ func SetNodeConfig(ctx *cli.Context, cfg *node.Config) {
if ctx.IsSet(JWTSecretFlag.Name) {
cfg.JWTSecret = ctx.String(JWTSecretFlag.Name)
}
if ctx.IsSet(EnablePersonal.Name) {
log.Warn(fmt.Sprintf("Option --%s is deprecated. The 'personal' RPC namespace has been removed.", EnablePersonal.Name))
}
if ctx.IsSet(ExternalSignerFlag.Name) {
cfg.ExternalSigner = ctx.String(ExternalSignerFlag.Name)

View file

@ -156,7 +156,7 @@ var (
// Deprecated Oct 2024
EnablePersonal = &cli.BoolFlag{
Name: "rpc.enabledeprecatedpersonal",
Usage: "This flag is deprecated",
Usage: "This used to enable the 'personal' namespace.",
Category: flags.DeprecatedCategory,
}
)