aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/geth
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2019-07-10 13:54:06 +0800
committerPéter Szilágyi <peterke@gmail.com>2019-07-10 14:12:07 +0800
commitc705aac826ca41744f303b9adb239f1e09bff86e (patch)
treedcadfcb37f5405865f5f83031ccd2edcdc35ae56 /cmd/geth
parentc6a9616cfdeca0cdbc01686750437a76b0e7d485 (diff)
downloadgo-tangerine-c705aac826ca41744f303b9adb239f1e09bff86e.tar
go-tangerine-c705aac826ca41744f303b9adb239f1e09bff86e.tar.gz
go-tangerine-c705aac826ca41744f303b9adb239f1e09bff86e.tar.bz2
go-tangerine-c705aac826ca41744f303b9adb239f1e09bff86e.tar.lz
go-tangerine-c705aac826ca41744f303b9adb239f1e09bff86e.tar.xz
go-tangerine-c705aac826ca41744f303b9adb239f1e09bff86e.tar.zst
go-tangerine-c705aac826ca41744f303b9adb239f1e09bff86e.zip
cmd, eth, les: make les flags conform to dotted style
Diffstat (limited to 'cmd/geth')
-rw-r--r--cmd/geth/main.go12
-rw-r--r--cmd/geth/usage.go12
2 files changed, 14 insertions, 10 deletions
diff --git a/cmd/geth/main.go b/cmd/geth/main.go
index 4d0dc14da..7d30c9243 100644
--- a/cmd/geth/main.go
+++ b/cmd/geth/main.go
@@ -93,10 +93,12 @@ var (
utils.SyncModeFlag,
utils.ExitWhenSyncedFlag,
utils.GCModeFlag,
- utils.LightServFlag,
- utils.LightBandwidthInFlag,
- utils.LightBandwidthOutFlag,
- utils.LightPeersFlag,
+ utils.LightServeFlag,
+ utils.LightLegacyServFlag,
+ utils.LightIngressFlag,
+ utils.LightEgressFlag,
+ utils.LightMaxPeersFlag,
+ utils.LightLegacyPeersFlag,
utils.LightKDFFlag,
utils.UltraLightServersFlag,
utils.UltraLightFractionFlag,
@@ -336,7 +338,7 @@ func startNode(ctx *cli.Context, stack *node.Node) {
// Set contract backend for ethereum service if local node
// is serving LES requests.
- if ctx.GlobalInt(utils.LightServFlag.Name) > 0 {
+ if ctx.GlobalInt(utils.LightLegacyServFlag.Name) > 0 || ctx.GlobalInt(utils.LightServeFlag.Name) > 0 {
var ethService *eth.Ethereum
if err := stack.Service(&ethService); err != nil {
utils.Fatalf("Failed to retrieve ethereum service: %v", err)
diff --git a/cmd/geth/usage.go b/cmd/geth/usage.go
index 1b40f76a4..af195425b 100644
--- a/cmd/geth/usage.go
+++ b/cmd/geth/usage.go
@@ -87,12 +87,12 @@ var AppHelpFlagGroups = []flagGroup{
},
},
{
- Name: "LES",
+ Name: "LIGHT CLIENT",
Flags: []cli.Flag{
- utils.LightServFlag,
- utils.LightBandwidthInFlag,
- utils.LightBandwidthOutFlag,
- utils.LightPeersFlag,
+ utils.LightServeFlag,
+ utils.LightIngressFlag,
+ utils.LightEgressFlag,
+ utils.LightMaxPeersFlag,
utils.UltraLightServersFlag,
utils.UltraLightFractionFlag,
utils.UltraLightOnlyAnnounceFlag,
@@ -253,6 +253,8 @@ var AppHelpFlagGroups = []flagGroup{
{
Name: "DEPRECATED",
Flags: []cli.Flag{
+ utils.LightLegacyServFlag,
+ utils.LightLegacyPeersFlag,
utils.MinerLegacyThreadsFlag,
utils.MinerLegacyGasTargetFlag,
utils.MinerLegacyGasPriceFlag,