Skip to content

eth/filters: return -32602 for block range limit exceeded error #34646

@MqllR

Description

@MqllR

geth 1.17.2

Description

The eth_getLogs endpoint returns a -32000 (server error) when the requested block range exceeds the configured limit. This is inconsistent with:

  • Other parameter validation errors in the same package (e.g. invalid block range params, invalid topic(s)), which already return -32602 (invalid params).
  • Reth, which returns -32602 for the same condition.

Proposed change: return -32602 for the block range limit error, in line with the rest of the parameter validation errors in eth/filters and with other client implementations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions