diff options
| author | Adam Soltys <[email protected]> | 2026-06-25 00:08:18 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-06-25 00:08:18 -0700 |
| commit | a1c20acc78df310e1d805e14c649bc1731e60e9d (patch) | |
| tree | 4182b7eee23d2c033603894cf444f093f4b4266f /src/api.js | |
| parent | 26a5d52cd11adb22cd3cd3de4ead1b1f3fff38e6 (diff) | |
| download | coinosv3-a1c20acc78df310e1d805e14c649bc1731e60e9d.tar.gz coinosv3-a1c20acc78df310e1d805e14c649bc1731e60e9d.zip | |
Faster WS reconnect; stop double-running the held-coin reconcile
- _scheduleReconnect now backs off exponentially from ~0.6s (was a flat 4s), so
a first socket attempt that's transiently rejected retries fast — the wallet
reaches Live in well under a second instead of ~4s. Backoff resets on open.
- refreshLive now stamps _lastPoll at its start, so a socket-open refresh and the
poll-timer tick don't both fire reconcileHeld back-to-back on load. A cached
load does one held-coin reconcile (verify coins still unspent + frontier check)
instead of ~3x.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Diffstat (limited to 'src/api.js')
0 files changed, 0 insertions, 0 deletions
