graphprotocol / graphprotocol/graph-node
[Feature] Add support for disabling supports_block_receipts via environment variables
Nessuno ha ancora preso questa issue.
- Lingua principale
- Rust
- Stelle
- 3.2k
- Fork
- 1.1k
- Merge medio
- 4g 1h
- PR unite (30g)
- 1
Descrizione
Description
Problem
Some blockchain nodes of specific chains return invalid data when calling the eth_getBlockReceipts method. This behavior can cause issues in the functionality of graph-node, particularly when the supports_block_receipts feature cannot be entirely disabled.
Currently, the environment variable GRAPH_ETHEREUM_BLOCK_RECEIPTS_CHECK_TIMEOUT allows configuring the timeout for block receipt checks. However, this is insufficient for completely disabling the functionality.
Proposed Solution
Introduce a new environment variable, such as GRAPH_SUPPORTS_BLOCK_RECEIPTS, to allow disabling the supports_block_receipts feature entirely by setting its value to false.
If the variable is not set, the current default behavior is preserved.
The variable would explicitly override the configuration to skip the supports_block_receipts checks.
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.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia individuando la gestione della configurazione per GRAPH_ETHEREUM_BLOCK_RECEIPTS_CHECK_TIMEOUT e i controlli supports_block_receipts; l’issue non indica alcun file o test. Aggiungi l’override proposto tramite variabile d’ambiente, mantenendo il valore predefinito esistente quando non è impostata, quindi verifica che false salti i controlli.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- rust
- Ambito
- blockchain
- Tipo di issue
- Funzionalità
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100