[Feature] Set `GRAPH_ETH_GET_LOGS_MAX_CONTRACTS` Per Provider

オープン
#4,974 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
rust

調査の方向性

まず、graph-node にある GRAPH_ETH_GET_LOGS_MAX_CONTRACTS 設定と eth_getLogs の provider リクエスト処理を見つけます。provider ごとに制限をどのように表現できるかを確認し、その後、コントラクト数の制限が異なる provider が報告された RPC エラーなしで処理されることを検証します。

索引モデルが issue の本文から書いたものです。

説明

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.
主要言語
Rust
スター
3.2k
フォーク
1.1k
平均マージ
4日 1時間
マージ済み PR(30日)
1

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

graphprotocol/graph-node のほかの issue

graphprotocol/graph-node の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。