mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 18:02:24 +00:00
cmd/utils: print warning when --rpc.enabledeprecatedpersonal is used
This commit is contained in:
parent
ceb7fee2a1
commit
6438f5a33b
2 changed files with 4 additions and 1 deletions
|
|
@ -1394,6 +1394,9 @@ func SetNodeConfig(ctx *cli.Context, cfg *node.Config) {
|
||||||
if ctx.IsSet(JWTSecretFlag.Name) {
|
if ctx.IsSet(JWTSecretFlag.Name) {
|
||||||
cfg.JWTSecret = ctx.String(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) {
|
if ctx.IsSet(ExternalSignerFlag.Name) {
|
||||||
cfg.ExternalSigner = ctx.String(ExternalSignerFlag.Name)
|
cfg.ExternalSigner = ctx.String(ExternalSignerFlag.Name)
|
||||||
|
|
|
||||||
|
|
@ -156,7 +156,7 @@ var (
|
||||||
// Deprecated Oct 2024
|
// Deprecated Oct 2024
|
||||||
EnablePersonal = &cli.BoolFlag{
|
EnablePersonal = &cli.BoolFlag{
|
||||||
Name: "rpc.enabledeprecatedpersonal",
|
Name: "rpc.enabledeprecatedpersonal",
|
||||||
Usage: "This flag is deprecated",
|
Usage: "This used to enable the 'personal' namespace.",
|
||||||
Category: flags.DeprecatedCategory,
|
Category: flags.DeprecatedCategory,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue