mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-12 05:50:06 +00:00
cmd/geth: usb is off by default (#21984)
# Conflicts: # cmd/geth/main.go # cmd/geth/usage.go
This commit is contained in:
parent
20413ad716
commit
f50f13d70c
@ -119,7 +119,11 @@ var (
|
||||
}
|
||||
NoUSBFlag = cli.BoolFlag{
|
||||
Name: "nousb",
|
||||
Usage: "Disables monitoring for and managing USB hardware wallets",
|
||||
Usage: "Disables monitoring for and managing USB hardware wallets (deprecated)",
|
||||
}
|
||||
USBFlag = cli.BoolFlag{
|
||||
Name: "usb",
|
||||
Usage: "Enable monitoring and management of USB hardware wallets",
|
||||
}
|
||||
SmartCardDaemonPathFlag = cli.StringFlag{
|
||||
Name: "pcscdpath",
|
||||
@ -1206,8 +1210,11 @@ func SetNodeConfig(ctx *cli.Context, cfg *node.Config) {
|
||||
if ctx.GlobalIsSet(LightKDFFlag.Name) {
|
||||
cfg.UseLightweightKDF = ctx.GlobalBool(LightKDFFlag.Name)
|
||||
}
|
||||
if ctx.GlobalIsSet(USBFlag.Name) {
|
||||
cfg.NoUSB = !ctx.GlobalBool(USBFlag.Name)
|
||||
}
|
||||
if ctx.GlobalIsSet(NoUSBFlag.Name) {
|
||||
cfg.NoUSB = ctx.GlobalBool(NoUSBFlag.Name)
|
||||
log.Warn("Option nousb is deprecated and USB is deactivated by default. Use --usb to enable")
|
||||
}
|
||||
if ctx.GlobalIsSet(InsecureUnlockAllowedFlag.Name) {
|
||||
cfg.InsecureUnlockAllowed = ctx.GlobalBool(InsecureUnlockAllowedFlag.Name)
|
||||
|
Loading…
Reference in New Issue
Block a user