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

chore: sunset the StaticMirroringWorker in favour of negentropy sync

Chiusa
#923 1 commento 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@Priyanshubhartistm ci sta già lavorando.

Dal 21/10/2026.

  • #924 di @Priyanshubhartistm — aperta

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

enhancement

Is your feature request related to a problem? Please describe.
StaticMirroringWorker (src/app/static-mirroring-worker.ts, 417 lines) mirrors events from other relays through its own admission check, separate from the one EventMessageHandler uses. Rules added to the write path have to be repeated there: for example, with subscription plans enabled, StaticMirroringWorker.isUserAdmitted never reads the subscription, so mirrored writes skip expiry (raised on #909). It also has no unit tests (#904).

Describe the solution you'd like
Retire the worker, since NIP-77 (Negentropy) sync and other ways of syncing with relays now cover what it is used for:

  • Remove StaticMirroringWorker, its factory and its start-up wiring.
  • Remove or deprecate the mirroring.static[] settings (including skipAdmissionCheck), the settings docs and the admin console parts that depend on them, with a changeset noting the removal.
  • Document how to sync with another relay without it.

Additional context

  • Decision from the maintainer on #909: sunset the worker rather than patch the subscription check into it.
Lingua principale
TypeScript
Stelle
829
Fork
234
Merge medio
16h 13m
PR unite (30g)
74

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 cameri/nostream

Tutte le issue di cameri/nostream

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.