Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
664903dc
Unverified
Commit
664903dc
authored
Jan 05, 2021
by
Guillaume Ballet
Committed by
GitHub
Jan 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd/geth: usb is off by default (#21984)
parent
9584f56b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
3 deletions
+12
-3
main.go
cmd/geth/main.go
+1
-0
usage.go
cmd/geth/usage.go
+2
-1
flags.go
cmd/utils/flags.go
+9
-2
No files found.
cmd/geth/main.go
View file @
664903dc
...
...
@@ -68,6 +68,7 @@ var (
utils
.
KeyStoreDirFlag
,
utils
.
ExternalSignerFlag
,
utils
.
NoUSBFlag
,
utils
.
USBFlag
,
utils
.
SmartCardDaemonPathFlag
,
utils
.
EthashCacheDirFlag
,
utils
.
EthashCachesInMemoryFlag
,
...
...
cmd/geth/usage.go
View file @
664903dc
...
...
@@ -37,7 +37,7 @@ var AppHelpFlagGroups = []flags.FlagGroup{
utils
.
DataDirFlag
,
utils
.
AncientFlag
,
utils
.
KeyStoreDirFlag
,
utils
.
No
USBFlag
,
utils
.
USBFlag
,
utils
.
SmartCardDaemonPathFlag
,
utils
.
NetworkIdFlag
,
utils
.
GoerliFlag
,
...
...
@@ -219,6 +219,7 @@ var AppHelpFlagGroups = []flags.FlagGroup{
{
Name
:
"ALIASED (deprecated)"
,
Flags
:
append
([]
cli
.
Flag
{
utils
.
NoUSBFlag
,
utils
.
LegacyRPCEnabledFlag
,
utils
.
LegacyRPCListenAddrFlag
,
utils
.
LegacyRPCPortFlag
,
...
...
cmd/utils/flags.go
View file @
664903dc
...
...
@@ -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"
,
...
...
@@ -1225,8 +1229,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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment