Sync gate: stall-window fencepost in the docs, `future` peers never age out, two doc typos
Les mainteneurs répondent en général sous 6 jours
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 65/100
- Type d'issue
- Bug
- Clarté
- Clairement spécifiée
- Activité
- Active
- Stack technique
- rust
- Domaine
- backend, distributed-systems, documentation
Piste de recherche
Start with the referenced sync gate code in crates/blockchain/src/sync_status.rs and the peer tracking code in crates/net/p2p/src/peer_heads.rs, then check their tests for stall timing and expiry behavior. The issue allows either changing the stall count or clarifying the docs; also expire future peer heads and fix the two specified documentation typos. Done when the timing is consistent, inactive future peers age out, and the documentation renders and reads correctly.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Leftovers from the last review round of lambdaclass/ethlambda#791, which stopped at the review-round cap. None of them changes which way the gate decides, apart from one slot of timing in item 1.
- The stall window's fencepost.
StallCount::countcounts the first behind judgment as 0 (crates/blockchain/src/sync_status.rs:198), and the backstop trips onbehind_for > stall_window(sync_status.rs:358).- A node whose head stays flat therefore reads
syncing, skipping its duties, on 17 distinct slots on lean (33 on beacon).a_lead_that_never_turns_into_progress_is_a_stallpins this (last_syncing = 100 + stall_window). - The docs say 16 slots:
SyncThresholds::stall_window(crates/net/api/src/sync.rs),docs/spec_deviations.md, and.claude/skills/multi-server-devnet/references/node-health.md:94,108("after 16 slots of that"). - Fix either side: count the first behind slot (start at 1, adjust the tests and the randomized bounds), or say "more than 16 slots" in the docs.
PeerHeads::futurenever ages out (crates/net/p2p/src/peer_heads.rs:207).- A peer enters the set when its
Statushead is past the clock, and leaves it only on a later in-clockStatusor its disconnect (record,forget,peer_heads.rs:231-234). The report lifetime that ages claims (PeerHeads::expire,peer_heads.rs:263) does not apply. - A connected peer that reported a future head once and then stopped answering therefore stays counted in
lean_sync_peers_held_back{reason="future"}and in the slow-clock warning's majority. - The gate is unaffected, since a future head never counts.
- Fix: keep the wall slot with each entry and drop it in
expirewith the claims.
- A peer enters the set when its
- Typos.
docs/metrics.md,lean_sync_peers_held_backrow: a comma is missing after "range requests that kept failing)", before "peers cooling down".docs/spec_deviations.md: "consensus-specs has no sync gate, and the Beacon API leavesis_syncingto the client." needs a blank line before it. Without one it renders as part of the beacon paragraph above.
- 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é 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
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 88/100
Les mainteneurs répondent en général sous 5 jours
-
autofixer: follow-up
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
tursodatabase/turso#12217 ·
Les mainteneurs répondent en général sous 1 jour
-
Declare the CMS schema library in the optional recipients extraPeut-être pris Une pull request liée à cette issue est ouverte ou déjà fusionnée. Ouvertearea:python in-progress
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
yhay81/pyropdf#1005 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour