[Feature] Set `GRAPH_ETH_GET_LOGS_MAX_CONTRACTS` Per Provider

Open
#4,974 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
rust

Research direction

Start by locating the GRAPH_ETH_GET_LOGS_MAX_CONTRACTS configuration and the eth_getLogs provider request handling in graph-node. Determine how the limit can be represented per provider, then verify that providers with different contract limits are handled without the reported RPC error.

Written by the indexing model from the issue text.

Description

enhancement Stale
Description

Currently, there is a limitation in configuring a Graph node to restrict the number of eth_getLogs requests per Provider. This limitation can lead to the occurrence of the following error:

Trying again after eth_getLogs RPC call for block range: [52590344..52590344] failed (attempt #10) with result Err(Rpc(Error { code: InvalidParams, message: "2149 address and topic selectors specified in query, but only 1000 are allowed", data: None })), component: BlockStream

This error is generated when an RPC provider has a predefined limit on the number of contracts that can be requested in a single call.

cc @leoyvens

Are you aware of any blockers that must be resolved before implementing this feature? If so, which? Link to any relevant GitHub issues.

No response

Some information to help us out
  • Tick this box if you plan on implementing this feature yourself.
  • I have searched the issue tracker to make sure this issue is not a duplicate.
Dominant language
Rust
Stars
3.2k
Forks
1.1k
Avg merge
4d 1h
Merged PRs (30d)
1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from graphprotocol/graph-node

All issues in graphprotocol/graph-node

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.