aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-06-14 12:40:33 -0700
committerAdam Soltys <[email protected]>2026-06-17 07:47:49 -0700
commitceb003afb154560bb68b4252759fedc1fee75a0f (patch)
tree48ca17fe2d8295842e257eab03a3b4c37ecfca02 /scripts
parent0987582546363935c5a388a9accb9b245c11a7c7 (diff)
downloadcoinos-server-ceb003afb154560bb68b4252759fedc1fee75a0f.tar.gz
coinos-server-ceb003afb154560bb68b4252759fedc1fee75a0f.zip
nwc: publish 13194 info event only when missing, recheck hourly
Port of master 6372d918, adapted to staging's nwc relay loop (no heartbeat here). NWC clients fetch the kind 13194 info event before they talk to the wallet; without it they show "no info event" and an unknown balance. 13194 is replaceable and meant to persist, so instead of blindly republishing on every connect, query the relay (ensureInfo) and publish only the server pubkeys whose event is actually missing. Re-check hourly so a relay restart that leaves our socket intact self-heals; interval is cleared on close/reconnect. Verified [email protected] Relay exposes ws/ readyState, on("eose") and unsubscribe. Co-Authored-By: Claude Opus 4.8 <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions