Skip to content

Add sync command (NIP-77 relay-to-relay)#2

Merged
kwsantiago merged 4 commits into
mainfrom
feat/sync
Jun 13, 2026
Merged

Add sync command (NIP-77 relay-to-relay)#2
kwsantiago merged 4 commits into
mainfrom
feat/sync

Conversation

@kwsantiago

Copy link
Copy Markdown
Contributor

Adds noz sync <src> <dst> [-k kind] [-a author], the last command of the set. Reconciles the source relay's matching events into the destination over NIP-77 negentropy (via libnostr-z sync.syncRelays), then prints the number published.

Verified live

Two wisp relays: seeded source with 8 events, empty destination; noz sync A B -k 1 reported "synced 8 events" and the destination then held all 8. Re-running is idempotent (relay dedupes).

Notes

  • Pinned to the libnostr-z main commit that includes the sync driver; bump to the v0.3.4 tag once it is cut.
  • noz now covers the full command set: key, event, req, count, relay, sync.

@kwsantiago kwsantiago merged commit c6bf0f8 into main Jun 13, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant