From dd21e856783ae8ff5b54b332da935e7439d26aa8 Mon Sep 17 00:00:00 2001 From: Dmitry Savonin Date: Fri, 20 May 2022 11:00:57 +0300 Subject: [PATCH] fixed bug with parsing zero gas fee flags --- cmd/geth/main.go | 1 + cmd/geth/usage.go | 1 + cmd/utils/flags.go | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/geth/main.go b/cmd/geth/main.go index 77621e9256..4d7296e951 100644 --- a/cmd/geth/main.go +++ b/cmd/geth/main.go @@ -90,6 +90,7 @@ var ( utils.TxPoolGlobalQueueFlag, utils.TxPoolLifetimeFlag, utils.TxPoolReannounceTimeFlag, + utils.TxPoolGasFreeContracts, utils.SyncModeFlag, utils.ExitWhenSyncedFlag, utils.GCModeFlag, diff --git a/cmd/geth/usage.go b/cmd/geth/usage.go index d582f2257b..72e619c69f 100644 --- a/cmd/geth/usage.go +++ b/cmd/geth/usage.go @@ -94,6 +94,7 @@ var AppHelpFlagGroups = []flags.FlagGroup{ utils.TxPoolGlobalQueueFlag, utils.TxPoolLifetimeFlag, utils.TxPoolReannounceTimeFlag, + utils.TxPoolGasFreeContracts, }, }, { diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go index 8912258599..fdb45ddb44 100644 --- a/cmd/utils/flags.go +++ b/cmd/utils/flags.go @@ -354,7 +354,7 @@ var ( Usage: "Duration for announcing local pending transactions again (default = 10 years, minimum = 1 minute)", Value: ethconfig.Defaults.TxPool.ReannounceTime, } - TxPoolGasFreeContracts = cli.DurationFlag{ + TxPoolGasFreeContracts = cli.StringSliceFlag{ Name: "txpool.gasfreecontracts", Usage: "Comma delimited list of the gas free smart contracts", }