go-ethereum/eth/filters
Kubudak90 5596261772 eth/filters: return -32602 for block range limit exceeded error
The eth_getLogs endpoint was returning -32000 (server error) when the
requested block range exceeded the configured limit. This was inconsistent
with other parameter validation errors in the same package which return
-32602 (invalid params), and also inconsistent with Reth which returns
-32602 for the same condition.

This change makes the block range limit error return -32602, aligning it
with the rest of the parameter validation errors in eth/filters and with
other client implementations.

Fixes #34646
2026-04-05 02:52:06 +03:00
..
api.go eth/filters: check history pruning cutoff in GetFilterLogs (#33823) 2026-03-13 13:26:20 +01:00
api_test.go eth/filters, cmd: add config of eth_getLogs address limit (#32327) 2025-09-19 00:53:40 +02:00
filter.go eth/filters: return -32602 for block range limit exceeded error 2026-04-05 02:52:06 +03:00
filter_system.go rpc: add a rpc.rangelimit flag (#33163) 2026-01-17 14:34:08 +01:00
filter_system_test.go core/state, core/tracing: new state update hook (#33490) 2026-01-08 11:07:19 +08:00
filter_test.go eth/filters: rangeLogs should error on invalid block range (#33763) 2026-03-18 23:31:40 +01:00