diff options
| author | Adam Soltys <[email protected]> | 2026-06-27 16:03:40 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-06-27 16:03:40 -0700 |
| commit | 4c95ed2826b4dd11555c0500426747571c148dec (patch) | |
| tree | c1fb2c66a9e476ab64a64884c03934dabfc90599 /src/format.js | |
| parent | e52327891130138d73e48ee8dd42781359a473c8 (diff) | |
| download | coinosv3-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/format.js')
0 files changed, 0 insertions, 0 deletions
