graphprotocol / graphprotocol/graph-node

lastHealthyBlock is never populated

Aperta
#4,414 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Stale
Lingua principale
Rust
Stelle
3.2k
Fork
1.1k
Merge medio
4g 1h
PR unite (30g)
1

Descrizione

Do you want to request a feature or report a bug?
Not sure. Seems like a bug to me

What is the current behavior?
For all the subgraphs I have deployed so far, I have never seen lastHealthyBlock be anything other than null. Not sure if that's supposed to happen and if yes then why is the key in the first place?

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.

  1. Deploy the gravatar subgraph from the docs
  2. Run the following query
req := graphql.NewRequest(`
		query {
			indexingStatuses {
				subgraph
				synced
				health
				entityCount
				node
				fatalError
				nonFatalErrors
				chains {
					network
					chainHeadBlock { number }
					earliestBlock { number }
					latestBlock { number }
					lastHealthyBlock { number }
				}
			}
		}
	`)
  1. Notice that lastHealthyBlock is null

What is the expected behavior?
That lastHealthyBlock should be populated

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.

Direzione di ricerca

Riproduci il report distribuendo il subgraph gravatar ed eseguendo la query indexingStatuses fornita. Traccia come vengono prodotti i campi di stato della chain, in particolare lastHealthyBlock, e confronta tale comportamento con il valore popolato previsto. Conferma il risultato con la stessa query dopo la modifica.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
graphql, rust
Ambito
api, backend, blockchain
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
30/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.