aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-06-28 14:05:19 -0700
committerAdam Soltys <[email protected]>2026-06-28 14:05:19 -0700
commit210eeb8073cd3cc46dae3411ce84ec99c928d2b1 (patch)
tree3492173420eb72f1e829c29737192af097d0ff57 /tools
parent5dd9412fded8f712932dc4b3036c3e96cef816c5 (diff)
downloadcoinosv3-210eeb8073cd3cc46dae3411ce84ec99c928d2b1.tar.gz
coinosv3-210eeb8073cd3cc46dae3411ce84ec99c928d2b1.zip
Nostr: use SimplePool (fixes WS console errors) + send DMs as NIP-04 AND NIP-17
- Migrated all relay I/O (profile/inbox fetch, DM publish, state sync) to a shared SimplePool. The old code opened a relay per request and closed it manually, which raced nostr-tools' CLOSE-after-EOSE and spammed 'WebSocket is already in CLOSING or CLOSED state'. SimplePool owns the connection lifecycle, so that's gone. Also reuses connections instead of churning one per fetch. - Gift DMs now go out as BOTH NIP-04 (kind 4) and NIP-17 (kind 1059 gift wrap). Older clients (Amethyst) read NIP-04; newer ones (Jumble) only support NIP-17 and ignore NIP-04 — sending both means the claim code shows up either way. Verified: profile/inbox fetch + DM still work via the pool; the NIP-17 wrap is published and unwraps to the original message; the NIP-04 kind-4 still lands too. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions