Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Revisit DKG timeout strategy and add test coverage

Aperta
#465 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 4 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
rust

Direzione di ricerca

Inizia tracciando la gestione complessiva di --timeout dell’esecuzione DKG e il timeout di parsigex per scambio, incluso il percorso DkgError::Timeout. Aggiungi la copertura per un peer bloccato o assente e per un’esecuzione sana con molti validatori. Il lavoro è completato quando entrambi i percorsi sono affidabili e i budget di timeout sono coerenti senza interruzioni errate.

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

Descrizione

Description

The DKG timeout works differently from Charon. Charon splits the timeout per phase (conf.Timeout / 6); Pluto uses one overall timeout for the whole run, because our sync service runs across all phases and can't be cut per-phase (we tried — it killed healthy runs).

Two gaps come from this. A stuck peer is only caught after the full timeout (~60s) instead of one phase (~10s). And with many validators (untested) a healthy run takes longer and could hit the timeout and be killed by mistake — made worse by parsigex already using the full conf.timeout per exchange.

Works today: stuck peer aborts cleanly, and a small healthy cluster finishes fine. Not covered: many-validator runs, and there's no automated test for the timeout.

Benefit (The "Why")

A DKG should never hang forever on a stuck peer, but it also must never kill a healthy ceremony by mistake. Closing these gaps makes the timeout reliable for real clusters (many validators), gives faster failure detection, and protects it with an automated test.

Acceptance Criteria
  • A healthy DKG with many validators completes without a false timeout under the default --timeout.
  • The relationship between the overall timeout and the per-exchange parsigex timeout is consistent (one budget is not silently exceeded by the other).
  • A stuck/absent peer still aborts cleanly with DkgError::Timeout.
  • An automated test covers the overall timeout (stuck peer aborts) and the healthy path (no false timeout).
Lingua principale
Rust
Stelle
8
Fork
6
Merge medio
4g 20h
PR unite (30g)
21

Preparare l'ambiente

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.

Altre issue di NethermindEth/pluto

Tutte le issue di NethermindEth/pluto

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.