diff options
| author | Adam Soltys <[email protected]> | 2026-06-25 13:28:45 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-06-25 13:28:45 -0700 |
| commit | 96b0ebcf370d7d88fcf515238ce6b9f363ec8265 (patch) | |
| tree | 4d0e113a868b604f535c71b9ea5602c9da7cc531 /src/api.js | |
| parent | a2bb363e2c86dc845e6748e046c8d489e656c584 (diff) | |
| download | coinosv3-96b0ebcf370d7d88fcf515238ce6b9f363ec8265.tar.gz coinosv3-96b0ebcf370d7d88fcf515238ce6b9f363ec8265.zip | |
Credit payments instantly from the watcher push (no REST on critical path)
The watcher push now carries the tx data (matched outputs + confirmed flag), so
the app credits an incoming payment the moment the push arrives — no mempool.space
round-trip. This removes the rate-limited REST reconcile from the path a user
actually waits on, and lets us back the frontier poll way off when the socket is
live (30s backstop vs the old 3s receive-tab hammer), cutting the 429s to a
trickle.
- watcher: notification includes { txid, confirmed, outputs:[{vout,value}] }.
- wallet: _applyTxNotification credits the receive coin + a pending history row
optimistically (receives only; change reconciles in the background), advances
the frontier, updates the balance, and schedules a background reconcile for
full accuracy off the critical path.
- poll intervals relaxed now that the WS does the real work instantly.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Diffstat (limited to 'src/api.js')
0 files changed, 0 insertions, 0 deletions
