Skip to content

fix(relayer): chunk eth_getLogs requests so the poller survives provider per-request range caps #284

@dhyaniarun1993

Description

@dhyaniarun1993

Problem

The relayer's poller ssues a single un-chunked eth_getLogs per tick covering [currentBlock + 1, latestBlock]. When that range exceeds the upstream provider's per-request block-range cap, the call returns Block range limit exceeded. currentBlock is only advanced inside the success branch, so the poller retries the same impossibly-wide range every PollingInterval and never makes progress until an operator intervenes.

Goal

The per-request range to the Ethereum RPC must be bounded by a configured value, not by chain dynamics or operational history.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions