graphprotocol / graphprotocol/graph-node

graphman commands for analyzing and fixing bad block issues

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

@tilacog がすでに取り組んでいます。

2022年1月11日 から。

area/graphman enhancement
主要言語
Rust
スター
3.2k
フォーク
1.1k
平均マージ
4日 1時間
マージ済み PR(30日)
1

説明

Sometimes, we're missing transactions from blocks returned from Ethereum nodes.

Usually, we then have to manually

  • compare the block in our database with the block returned from the Ethereum node,
  • identify what subgraphs are or might be affected,
  • roll them back or restart them.

This is tedious. It would be great to have graphman commands that do the following:

  1. Given a network and block number or hash
    • Compare our cached block with the block on this network, identify all contract addresses of mismatching data in the block
    • Print a diff of the block
    • Print lists of all subgraphs that might be affected:
      • All subgraphs for this network that failed on that block
      • All subgraphs for this network that have
        • data sources for one of the contract addresses included in the mismatching block data
        • data sources with no contract address
  2. Fix a block by refetching it from the network
  3. Rewind / restart a list of subgraph deployments, if we don't have commands for this yet

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

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

はじめの一歩

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

評価

この issue はまだ評価されていません。

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

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