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

[Audit] Fee-collection events are the only handler not wrapped in a transaction, and worker inconsistency compounds UX-visible drift

Aperta
#1,239 6 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 7 giorni

@d1a-m3n ci sta già lavorando.

Dal 29/8/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

backend enhancement second-wave-audit Stellar Wave ux

Filed from the second-wave repository audit (issue 37/100). See the audit summary for full category context.

  • Location: backend/src/workers/soroban-event-worker.ts:1000-1060 (handleFeeCollected)
  • Problem: Unlike every other event handler in the file, this one performs its dedup check and its upsert as two separate top-level prisma calls instead of one prisma.$transaction, reopening a TOCTOU window the rest of the file was clearly designed to avoid.
  • Evidence: No $transaction wrapper, in contrast to sibling handlers in the same file.
  • Suggested implementation: Wrap the dedup-check + upsert in prisma.$transaction, matching the other handlers.
  • Acceptance criteria: A test simulating two near-simultaneous fee-collected events for the same tx confirms exactly one StreamEvent row is created.
  • Difficulty: S
  • Expected impact: Closes a duplicate-fee-event race visible to anyone reconciling fee revenue from the API.
Lingua principale
TypeScript
Stelle
18
Fork
250
Merge medio
5g 6h
PR unite (30g)
82

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 LabsCrypt/flowfi

Tutte le issue di LabsCrypt/flowfi

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.