Skip to content

Commit db92f7c

Browse files
committed
cmd: no need to check txlookup limit in archive node
Signed-off-by: Delweng <[email protected]>
1 parent 3f3ac94 commit db92f7c

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

cmd/utils/flags.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1656,12 +1656,6 @@ func SetEthConfig(ctx *cli.Context, stack *node.Node, cfg *ethconfig.Config) {
16561656
log.Warn("The flag --txlookuplimit is deprecated and will be removed, please use --history.transactions")
16571657
cfg.TransactionHistory = ctx.Uint64(TxLookupLimitFlag.Name)
16581658
}
1659-
if ctx.String(GCModeFlag.Name) == "archive" {
1660-
if cfg.TransactionHistory != 0 {
1661-
cfg.TransactionHistory = 0
1662-
log.Warn("Disabled transaction unindexing for archive node")
1663-
}
1664-
}
16651659
if ctx.IsSet(LogHistoryFlag.Name) {
16661660
cfg.LogHistory = ctx.Uint64(LogHistoryFlag.Name)
16671661
}

0 commit comments

Comments
 (0)