diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-04-20 19:01:51 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2017-04-20 19:01:51 +0800 |
commit | 6430e672c99f6d22582b104f8467d4bd8a4b5f6e (patch) | |
tree | f320b92a44384fdcc699e925197228f4a4f4ec0d /cmd/utils/flags.go | |
parent | e353f9c0886f0cc13fd01c8b3abf2fa63025c62f (diff) | |
download | go-tangerine-6430e672c99f6d22582b104f8467d4bd8a4b5f6e.tar go-tangerine-6430e672c99f6d22582b104f8467d4bd8a4b5f6e.tar.gz go-tangerine-6430e672c99f6d22582b104f8467d4bd8a4b5f6e.tar.bz2 go-tangerine-6430e672c99f6d22582b104f8467d4bd8a4b5f6e.tar.lz go-tangerine-6430e672c99f6d22582b104f8467d4bd8a4b5f6e.tar.xz go-tangerine-6430e672c99f6d22582b104f8467d4bd8a4b5f6e.tar.zst go-tangerine-6430e672c99f6d22582b104f8467d4bd8a4b5f6e.zip |
cmd, node: add --nosub and node.Config.NoUSB to disable hw wallets
Diffstat (limited to 'cmd/utils/flags.go')
-rw-r--r-- | cmd/utils/flags.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go index b35574c86..af9585bd0 100644 --- a/cmd/utils/flags.go +++ b/cmd/utils/flags.go @@ -115,6 +115,10 @@ var ( Name: "keystore", Usage: "Directory for the keystore (default = inside the datadir)", } + NoUSBFlag = cli.BoolFlag{ + Name: "nousb", + Usage: "Disables monitoring for and managine USB hardware wallets", + } EthashCacheDirFlag = DirectoryFlag{ Name: "ethash.cachedir", Usage: "Directory to store the ethash verification caches (default = inside the datadir)", @@ -729,6 +733,9 @@ func SetNodeConfig(ctx *cli.Context, cfg *node.Config) { if ctx.GlobalIsSet(LightKDFFlag.Name) { cfg.UseLightweightKDF = ctx.GlobalBool(LightKDFFlag.Name) } + if ctx.GlobalIsSet(NoUSBFlag.Name) { + cfg.NoUSB = ctx.GlobalBool(NoUSBFlag.Name) + } } func setGPO(ctx *cli.Context, cfg *gasprice.Config) { |