aboutsummaryrefslogtreecommitdiffstats
path: root/src/api.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-06-27 16:03:40 -0700
committerAdam Soltys <[email protected]>2026-06-27 16:03:40 -0700
commit4c95ed2826b4dd11555c0500426747571c148dec (patch)
treec1fb2c66a9e476ab64a64884c03934dabfc90599 /src/api.js
parente52327891130138d73e48ee8dd42781359a473c8 (diff)
downloadcoinosv3-4c95ed2826b4dd11555c0500426747571c148dec.tar.gz
coinosv3-4c95ed2826b4dd11555c0500426747571c148dec.zip
Push silent payments over WebSocket instead of polling
The indexer now serves a /ws endpoint and publishes each newly-indexed block's SP items to subscribers. The wallet subscribes (_spConnect) and scans pushed items on arrival (_scanSpItems) — folding receipts into the balance instantly — catching up via /scan on connect/reconnect. Polling for SP is now only a fallback for when the socket isn't live. Verified on regtest: connect, mine a block, wallet receives the push. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Diffstat (limited to 'src/api.js')
0 files changed, 0 insertions, 0 deletions