graphprotocol / graphprotocol/graph-node
[Feature] Add support for disabling supports_block_receipts via environment variables
Personne n'a encore pris cette issue.
- Langage dominant
- Rust
- Étoiles
- 3.2k
- Forks
- 1.1k
- Merge moyen
- 4 j 1 h
- PR mergées (30 j)
- 1
Description
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.
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Piste de recherche
Commencez par localiser la gestion de la configuration de GRAPH_ETHEREUM_BLOCK_RECEIPTS_CHECK_TIMEOUT et les vérifications de supports_block_receipts ; l’issue ne nomme aucun fichier ni test. Ajoutez la surcharge proposée par variable d’environnement tout en conservant la valeur par défaut existante lorsqu’elle n’est pas définie, puis vérifiez que false ignore les vérifications.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- rust
- Domaine
- blockchain
- Type d'issue
- Fonctionnalité
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 45/100