Skip to content

eth/ethconfig: remove redundant RPCLogQueryLimit field#2154

Open
lucca30 wants to merge 2 commits intov2.7.0-candidatefrom
lmartins/lmartins/pos-3520-remove-rpc-log-query-limit-dup
Open

eth/ethconfig: remove redundant RPCLogQueryLimit field#2154
lucca30 wants to merge 2 commits intov2.7.0-candidatefrom
lmartins/lmartins/pos-3520-remove-rpc-log-query-limit-dup

Conversation

@lucca30
Copy link
Contributor

@lucca30 lucca30 commented Mar 20, 2026

Summary

  • LogQueryLimit was introduced from an upstream Geth merge (dce511c1e); RPCLogQueryLimit was added later when wiring the internal CLI server, creating a duplicate field.
  • Both were always set to the same value from --rpc.logquerylimit; the filter system read RPCLogQueryLimit while LogQueryLimit sat unused.
  • This PR removes RPCLogQueryLimit and makes LogQueryLimit the single source of truth.

Details

No user-facing change: the --rpc.logquerylimit CLI flag and the logquerylimit TOML key are unchanged. The default of 1000 is preserved via ethconfig.Defaults.LogQueryLimit.

Migration note for direct Go API consumers: if you reference ethconfig.Config.RPCLogQueryLimit directly, switch to ethconfig.Config.LogQueryLimit.

Credits to @kamuikatsurgi for catching the duplicate in the review of #2149 and #2150.

Test plan

  • go build ./... — compiles cleanly
  • go test ./eth/filters/... ./internal/cli/server/... — all pass
  • grep -rn "RPCLogQueryLimit" . --include="*.go" — zero results
  • Tested against kurtosis devnet (devnet.yaml, 2 validators) with --rpc.logquerylimit 5:
    • Startup log confirms limit is active: Log query limit active limit=5
    • eth_getLogs with 4 addresses (≤5): returns results normally
    • eth_getLogs with 6 addresses (>5): returns exceed max addresses or topics per search position

Copy link

@claude claude bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review to trigger a review.

dependabot bot and others added 2 commits March 20, 2026 11:17
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.77.0 to 1.79.3.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](grpc/grpc-go@v1.77.0...v1.79.3)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-version: 1.79.3
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
LogQueryLimit was introduced from an upstream Geth merge (dce511c);
RPCLogQueryLimit was added later when wiring the internal CLI, creating
a duplicate. Both were always set to the same value from
--rpc.logquerylimit; filters read RPCLogQueryLimit while LogQueryLimit
was dead code.

Remove RPCLogQueryLimit and make LogQueryLimit the single field.
No user-facing change: the --rpc.logquerylimit CLI flag and the
logquerylimit TOML key are unchanged.
@lucca30 lucca30 force-pushed the lmartins/lmartins/pos-3520-remove-rpc-log-query-limit-dup branch from 48e8e41 to 7acdc6e Compare March 20, 2026 14:20
@sonarqubecloud
Copy link

@claude
Copy link

claude bot commented Mar 20, 2026

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

@codecov
Copy link

codecov bot commented Mar 20, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (v2.7.0-candidate@c2f2cee). Learn more about missing BASE report.

Additional details and impacted files

Impacted file tree graph

@@                 Coverage Diff                 @@
##             v2.7.0-candidate    #2154   +/-   ##
===================================================
  Coverage                    ?   51.60%           
===================================================
  Files                       ?      882           
  Lines                       ?   154208           
  Branches                    ?        0           
===================================================
  Hits                        ?    79575           
  Misses                      ?    69462           
  Partials                    ?     5171           
Files with missing lines Coverage Δ
eth/backend.go 52.47% <100.00%> (ø)
eth/ethconfig/config.go 78.94% <ø> (ø)
internal/cli/server/config.go 63.78% <100.00%> (ø)
Files with missing lines Coverage Δ
eth/backend.go 52.47% <100.00%> (ø)
eth/ethconfig/config.go 78.94% <ø> (ø)
internal/cli/server/config.go 63.78% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants