graphprotocol / graphprotocol/graph-node

graphman commands for analyzing and fixing bad block issues

Aperta
#3,145 1 commento 0 reazioni 1 assegnatario Vedi su GitHub

@tilacog ci sta già lavorando.

Dal 11/1/2022.

area/graphman enhancement
Lingua principale
Rust
Stelle
3.2k
Fork
1.1k
Merge medio
4g 1h
PR unite (30g)
1

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.