aboutsummaryrefslogtreecommitdiffstats
path: root/src/api.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-06-25 00:02:51 -0700
committerAdam Soltys <[email protected]>2026-06-25 00:02:51 -0700
commit26a5d52cd11adb22cd3cd3de4ead1b1f3fff38e6 (patch)
tree2f442542d1c39382e785c69e0784b434a7ac8f11 /src/api.js
parentd4db7d545d51cde2f5a98426c1839e0fe0745efa (diff)
downloadcoinosv3-26a5d52cd11adb22cd3cd3de4ead1b1f3fff38e6.tar.gz
coinosv3-26a5d52cd11adb22cd3cd3de4ead1b1f3fff38e6.zip
Stop full-scanning the API on every load; go Live before Nostr
The refresh request storm (and the 429s) was a full API re-scan running on every load even when the local cache or Nostr already held the complete state. Now the full scan runs ONLY when there's neither cache nor Nostr (a seed on a fresh device); otherwise the socket + frontier poll keep things current and reconcile held coins — a handful of requests instead of re-querying every historical address plus its utxos and txs. Also reordered: startRealtime() now runs BEFORE syncFromNostr (which blocks up to 6s waiting on the relay) and before any discovery scan, so the wallet goes Live immediately instead of sitting in Polling. retrack() after sync/scan re-subscribes to the final frontier; a fresh open re-baselines its celebration against it. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Diffstat (limited to 'src/api.js')
0 files changed, 0 insertions, 0 deletions