diff options
| author | Adam Soltys <[email protected]> | 2026-06-02 21:23:27 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-06-02 21:23:27 -0700 |
| commit | 6372d9185021aeb379e8c67386ba72f7b0aa4bdd (patch) | |
| tree | 078e03c96c76b31a9465d2ae043081853a86cc6b /scripts/cln_schema.sql | |
| parent | a664af99dfee8267a960fd22cbab852681198de2 (diff) | |
| download | coinos-server-6372d9185021aeb379e8c67386ba72f7b0aa4bdd.tar.gz coinos-server-6372d9185021aeb379e8c67386ba72f7b0aa4bdd.zip | |
nwc: publish 13194 info event only when missing, recheck hourly
NWC clients (Alby Go, Lightning Piggies) fetch the kind 13194 info event
(capability advertisement) before they'll talk to the wallet; without it
they report "no info event" and show an unknown balance. The events went
missing after strfry restarted on 2026-05-29 and stayed gone for days,
because the app only published them once in the relay's on-open handler
and nothing re-asserted them.
13194 is a replaceable event meant to persist, so instead of blindly
republishing, query the relay on connect and publish only the server
pubkeys whose info event is actually missing (ensureInfo). Re-check
hourly so a relay restart that leaves our socket intact also self-heals.
Interval is cleared on close/reconnect alongside the heartbeat to avoid
leaks.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Diffstat (limited to 'scripts/cln_schema.sql')
0 files changed, 0 insertions, 0 deletions
