diff options
| author | Adam Soltys <[email protected]> | 2026-06-24 07:34:36 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-06-24 07:34:36 -0700 |
| commit | dc1e7a400d1158d0bb8a6a7914f7ac1b3073e034 (patch) | |
| tree | a15b8e4932c85a3b95ab612c4dfd6bffe139e4c1 /src/api.js | |
| parent | 6190f25ca44ed12a0e136004096aef042c472b77 (diff) | |
| download | coinosv3-dc1e7a400d1158d0bb8a6a7914f7ac1b3073e034.tar.gz coinosv3-dc1e7a400d1158d0bb8a6a7914f7ac1b3073e034.zip | |
Configurable Nostr sync; fully reconcile wallet state on load
Device sync:
- Add a "Device sync" settings card: toggle (on by default) + editable
relay list (defaults to wss://relay.coinos.io). When off, the wallet
never contacts a relay. nostr.js is now multi-relay and reads an
enabled/relays preference from localStorage.
Reconciliation (fixes a stray "payment received" + stale history on
import, especially via the Nostr/cache load path):
- Always full-scan on load instead of a frontier-only refreshLive, so
balance, history confirmations and spends are reconciled and the
celebration baselines against everything that already exists (cache/
Nostr still shows instantly first).
- Actually start the periodic full-scan safety net (_deepTimer, 2 min);
it was declared but never wired up.
- WS pushes now refresh an existing tx's pending→confirmed status, not
only add new transactions.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Diffstat (limited to 'src/api.js')
0 files changed, 0 insertions, 0 deletions
