go-ethereum/eth/filters
ray ca1fae4dab internal/ethapi, eth/filters: return -32602 for parameter validation errors
Several RPC parameter validation errors were returning the default
error code -32000 (generic server error) instead of -32602 (invalid
params) as specified by the JSON-RPC 2.0 specification.

This change wraps parameter validation errors in invalidParamsError
so that clients receive the correct -32602 error code, consistent
with the fix in a8ea6319f (eth/filters: return -32602 when exceeding
the block range limit).
2026-04-13 19:42:31 +08:00
..
api.go internal/ethapi, eth/filters: return -32602 for parameter validation errors 2026-04-13 19:42:31 +08: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 when exceeding the block range limit (#34647) 2026-04-08 12:57:29 +02: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: return -32602 when exceeding the block range limit (#34647) 2026-04-08 12:57:29 +02:00