graphprotocol / graphprotocol/graph-node

graphman commands for analyzing and fixing bad block issues

Abierto
#3,145 1 comentario 0 reacciones 1 asignado Ver en GitHub

@tilacog ya está trabajando en esto.

Desde el 11/1/2022.

area/graphman enhancement
Lenguaje dominante
Rust
Estrellas
3.2k
Forks
1.1k
Merge medio
4 d 1 h
PR fusionados (30 d)
1

Descripción

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

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.