Add validated epoch catch-up sync path (follow-up to #5750)
I maintainer di solito rispondono entro 10 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 15/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- blockchain, python
- Ambito
- blockchain, distributed-systems, security
Direzione di ricerca
Start with _handle_epoch_commit, the _epoch_votes bookkeeping and the unverified_voters rejection, plus the test test_signed_state_sync_cannot_inject_epoch_finality. The issue leaves the design open (vote-record sync, commit certificate or checkpoints), and two linked pull requests were closed unmerged, so agree on an approach with maintainers before coding. Done means a node that missed epoch N's voting can establish finality from peer data while that test still passes.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Context
PR #5750 (merged) closed a finality-forgery vulnerability: generic STATE sync was importing finalized epoch data from any peer's snapshot, with only a sender-signature check. A valid peer signature authenticates who sent the snapshot, not that the epoch was actually committed by quorum. #5750 removed that path — epochs now enter epoch_crdt only via the validated EPOCH_COMMIT handler, which requires the receiver to have locally observed accept votes from a quorum.
The gap this creates
A node that was offline during epoch voting + commit has no entries in its local _epoch_votes for that epoch. When it comes back online and a peer sends EPOCH_COMMIT, the new _handle_epoch_commit validation rejects it with unverified_voters — the recovering node never saw the votes, so it can't confirm the quorum.
Result: offline nodes can no longer catch up epoch finality. This is an acceptable short-term tradeoff (closing a forgery hole beats easy catch-up), but it needs a proper fix.
What's needed
A validated catch-up sync path — something that lets a recovering node re-establish finality for missed epochs without trusting an unverified snapshot. Options to evaluate:
- Vote-record sync — let a recovering node request the raw signed accept-votes for an epoch from peers, verify each signature itself, then apply the same quorum check
_handle_epoch_commituses. Finality is then locally derived, not imported. - Commit-certificate — have the committing node assemble a quorum certificate (the set of signed accept-votes) and attach it to
EPOCH_COMMIT. A recovering node verifies the certificate's signatures + quorum independently. - Checkpoint sync — periodic signed checkpoints with their own multi-sig quorum, for nodes that are very far behind.
Option 2 (commit-certificate) is likely the cleanest — it makes EPOCH_COMMIT self-verifying instead of depending on the receiver's local vote history.
Acceptance
- A node offline during epoch N's voting can rejoin and establish finality for epoch N from peer data without any path that accepts unverified
finalizedflags. - Regression test: the
test_signed_state_sync_cannot_inject_epoch_finalityinvariant from #5750 still holds.
Filed as a follow-up to keep #5750's security fix shippable now while the catch-up path is designed properly.
- Lingua principale
- Python
- Stelle
- 850
- Fork
- 589
- Merge medio
- 11g 7h
- PR unite (30g)
- 29
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi 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.
Altre issue di Scottcjn/Rustchain
-
utxo_ledger (reference): failed apply_transaction leaks already-created outputs (supply inflation)Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
I maintainer di solito rispondono entro 10 giorni
-
SDK CLI prints 0 RTC for canonical /wallet/balance responsesForse già presa @ArtyormSatori l’ha presa 37 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
Scottcjn/Rustchain#8580 · 4 commenti ·
I maintainer di solito rispondono entro 10 giorni
-
utxo_ledger (reference): no coinbase authorization; mempool admits any input-less MINING_REWARDAperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 38/100
I maintainer di solito rispondono entro 10 giorni
-
[SECURITY] Non-finite and garbage weights pass the sybil-guard money chain — enrollment_weight has no isfinite guard and epoch_weight_to_units raises on NaN/infForse già presa @thinhnx128 l’ha presa 28 giorni fa. Apertabug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
Scottcjn/Rustchain#8619 · 2 commenti ·
I maintainer di solito rispondono entro 10 giorni
-
[Antiquity] Celeron M (Banias/Dothan, 2004) has no brand rule — real vintage silicon falls to x86 default 1.0x while its Pentium M twin earns 1.9xForse già presa @Limm-web l’ha presa 60 giorni fa. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
Scottcjn/Rustchain#8578 · 5 commenti ·
I maintainer di solito rispondono entro 10 giorni
Tutte le issue di Scottcjn/Rustchain
Issue simili
-
[Resource]: SpaicelyApertaresource-submission validation-passed
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 68/100
hesreallyhim/awesome-claude-code#3875 · 1 commento ·
-
[Bug]: Ajax Pro login issueApertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
bvis/aegis-hass#725 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
datasektionen/cashflow#468 ·
-
dont call alembic upgrade until we check whether or not the cache DB has an alembic version stampAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
Bug: AttributeError: 'GptOssConfig' object has no attribute 'rope_scaling_factor' with transformers >= 5.xForse già presa @NimaVaziri l’ha presa oggi. ApertaPytorch
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
NVIDIA/TensorRT-LLM#23406 ·
I maintainer di solito rispondono entro 1 giorno