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

Add exponential backoff and gap recovery to EscrowMonitor polling and event streams

Aperta
#343 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@shobhamerabacha-star ci sta già lavorando.

Dal 6/10/2026.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
blockchain, typescript
Ambito
blockchain

Direzione di ricerca

Start in src/escrow/monitor.ts, reading startResilientPolling(), the MonitorGapInfo type and the EscrowMonitorErrorContext error path to see where reconnection currently resumes without checking missed ledgers. Add backoff and a ledger-range replay of MilestoneTrancheReleased and VoteCommitted, then cover the simulated drop and gap cases with Jest tests. Done means reconnection replays every missed ledger in order, with no duplicate dispatch.

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

Descrizione

bug difficulty: medium reliability sdk

Description

In src/escrow/monitor.ts, when startResilientPolling() experiences network disconnection or RPC gateway timeouts, the polling loop logs the error via EscrowMonitorErrorContext but does not calculate missed ledger gaps when re-establishing connectivity, potentially missing intermediate MilestoneTrancheReleased or VoteCommitted events.

Component

SDK (src/escrow/monitor.ts)

Difficulty

🟡 Medium

Tasks

[ ] Populate MonitorGapInfo with fromLedger and toLedger upon reconnection
[ ] Fetch and replay missed contract events in sequence before resuming live polling
[ ] Implement exponential backoff for RPC failure handling
[ ] Add Jest tests with simulated network drop and gap recovery

Acceptance Criteria

[ ] Reconnection queries historical events for all missed ledgers
[ ] Duplicate event dispatch is prevented during gap replay
[ ] Monitor cleanly recovers without losing contract events

Estimated Time

2 days

Lingua principale
TypeScript
Stelle
0
Fork
73
Merge medio
9h 18m
PR unite (30g)
58

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 trustflow-protocol/trustflow-sdk

Tutte le issue di trustflow-protocol/trustflow-sdk

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.