From f752c66dfee1d98a82d38b0cacc7638c3448cded Mon Sep 17 00:00:00 2001 From: "yzb@example.cn" Date: Tue, 5 Mar 2024 12:00:56 +0800 Subject: [PATCH] utils/flags: remove useless param --- cmd/utils/flags.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go index 82af26ff96..11dc293d58 100644 --- a/cmd/utils/flags.go +++ b/cmd/utils/flags.go @@ -1193,7 +1193,7 @@ func setIPC(ctx *cli.Context, cfg *node.Config) { } // setLes shows the deprecation warnings for LES flags. -func setLes(ctx *cli.Context, cfg *ethconfig.Config) { +func setLes(ctx *cli.Context) { if ctx.IsSet(LightServeFlag.Name) { log.Warn("The light server has been deprecated, please remove this flag", "flag", LightServeFlag.Name) } @@ -1594,7 +1594,7 @@ func SetEthConfig(ctx *cli.Context, stack *node.Node, cfg *ethconfig.Config) { setTxPool(ctx, &cfg.TxPool) setMiner(ctx, &cfg.Miner) setRequiredBlocks(ctx, cfg) - setLes(ctx, cfg) + setLes(ctx) // Cap the cache allowance and tune the garbage collector mem, err := gopsutil.VirtualMemory()