From 68855216c903eea9f952a1a7a56e69ea285f284b Mon Sep 17 00:00:00 2001 From: Delweng Date: Mon, 14 Aug 2023 20:58:01 +0800 Subject: [PATCH] cmd/utils: restore support for txlookuplimit flag (#27917) This fixes a regression where -txlookuplimit was not applied anymore. --- cmd/utils/flags.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go index 3f1d0c097..e2136feb8 100644 --- a/cmd/utils/flags.go +++ b/cmd/utils/flags.go @@ -1719,7 +1719,7 @@ func SetEthConfig(ctx *cli.Context, stack *node.Node, cfg *ethconfig.Config) { cfg.TransactionHistory = ctx.Uint64(TransactionHistoryFlag.Name) } else if ctx.IsSet(TxLookupLimitFlag.Name) { log.Warn("The flag --txlookuplimit is deprecated and will be removed, please use --history.transactions") - cfg.TransactionHistory = ctx.Uint64(TransactionHistoryFlag.Name) + cfg.TransactionHistory = ctx.Uint64(TxLookupLimitFlag.Name) } if ctx.String(GCModeFlag.Name) == "archive" && cfg.TransactionHistory != 0 { cfg.TransactionHistory = 0