Beacon API: resolve state roots and the genesis id, and serve states/{state_id}/root
Les mainteneurs répondent en général sous 6 jours
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 42/100
Piste de recherche
Start with docs/spec_deviations.md ("block_id cannot name genesis...") and docs/rpc.md to see the current contract, then read the store that keys states by block root and the Table::BlockRoots anchor logic, since the new state-root index has to be written at import and pruned alongside States/StateDiffs. Find the existing debug beacon states handler to add the 0x state-root and anchor-at-slot-0 genesis resolution, then add the GET /eth/v1/beacon/states/{state_id}/root route next to the other state routes. Done means both ids resolve for locally built devnets, the 404 stays for checkpoint-synced directories, and both docs pages and the rpc.md heading list are updated.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Problem. Three of ethereum-package's tools load beacon states by state root or by genesis, and ethlambda refuses both. These findings come from reading each tool's source against main (b2722cfd); nothing was run.
- checkpointz (the package runs it in
fullmode): it downloads the finalized bundle's state withGET /eth/v2/debug/beacon/states/0x<state_root>, gets a 404, and never serves a checkpoint. So no node can checkpoint-sync from it. It also asks for blockgenesisevery 15 s and logs "invalid genesis block". - dora: it loads every state with
0x<state_root>orgenesis. Blocks are indexed, but nothing derived from a state is: the validator set, the duties, epoch participation and the validator pages are all missing. - tracoor: it captures no states. Its first call,
GET /eth/v1/beacon/states/{slot}/root, is not served. With that route it would then ask for the state by state root, which is refused too.
Both refusals are deliberate (docs/spec_deviations.md, "block_id cannot name genesis, and state_id cannot be a state root"):
- states are keyed by block root, with no reverse index;
Table::BlockRootsstarts above the store's anchor, and a checkpoint-synced directory has no genesis block anyway.
Fix.
- Index state root to block root for the states the store holds, written at import and pruned with
States/StateDiffs. Resolve a0xstate_idthrough it. - Serve
GET /eth/v1/beacon/states/{state_id}/root. - Resolve
genesis, on either id, when the store's anchor is at slot 0: that anchor is the genesis block and state, as on every devnet that starts from its owngenesis.ssz. Keep the 404 for a checkpoint-synced directory. - Update docs/spec_deviations.md and docs/rpc.md. The rpc.md heading "Accepted ids, and three that are refused" lists only two.
- Langage dominant
- Rust
- Étoiles
- 86
- Forks
- 34
- Merge moyen
- 9 j 20 h
- PR mergées (30 j)
- 77
Préparer son environnement
- Fournit un Dockerfile ou un fichier Docker Compose
- Propose un modèle de pull request
- Lire 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.
Autres issues de lambdaclass/ethlambda
-
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
lambdaclass/ethlambda#850 ·
Les mainteneurs répondent en général sous 6 jours
-
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
lambdaclass/ethlambda#777 · 1 réaction ·
Les mainteneurs répondent en général sous 6 jours
-
Run all gossip validation testsPeut-être à nouveau libre @dicethedev l’a pris il y a 9 jours, et aucune pull request n’est ouverte. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
lambdaclass/ethlambda#725 · 2 commentaires ·
Les mainteneurs répondent en général sous 6 jours
-
Handle malformed DB dataPeut-être à nouveau libre @dicethedev l’a pris il y a 115 jours, et aucune pull request n’est ouverte. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
lambdaclass/ethlambda#529 · 4 commentaires ·
Les mainteneurs répondent en général sous 6 jours
-
Document architectural choicesPeut-être à nouveau libre @dicethedev l’a pris il y a 115 jours, et aucune pull request n’est ouverte. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
lambdaclass/ethlambda#521 · 2 commentaires ·
Les mainteneurs répondent en général sous 6 jours
Toutes les issues de lambdaclass/ethlambda
Issues similaires
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 88/100
bytecodealliance/wrpc#1785 ·
Les mainteneurs répondent en général sous 1 jour
-
2 advisory ignore entries no longer match anything (`quick-xml` already patched in `Cargo.lock`)Ouverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 85/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
longbridge/nsh#2758 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
antithesishq/bombadil#473 ·
Les mainteneurs répondent en général sous 2 jours
-
bench/api.sh exec test fails with curl exit 52, and --ignore-failure still records the timingsOuvertebug
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
libracoder/kiri#669 ·
Les mainteneurs répondent en général sous 1 jour