diff options
| author | Adam Soltys <[email protected]> | 2026-06-26 14:02:56 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-06-26 14:02:56 -0700 |
| commit | f8834d6559cc8bc133d365bb2b3c625590483a64 (patch) | |
| tree | 793c094df4e06c2f9c6d8fab1fa0e628c0e1fbe6 /src/api.js | |
| parent | bb939f73e4e02b528e346b9f9d909c3a25cfedbb (diff) | |
| download | coinosv3-f8834d6559cc8bc133d365bb2b3c625590483a64.tar.gz coinosv3-f8834d6559cc8bc133d365bb2b3c625590483a64.zip | |
Fix stale cross-device balance + Electrum call timeouts
Two Electrum-backend issues:
1. Stale balance after a send made on another device: _reconcileHeld set each
address's balance from get_balance/address-stats, where a confirmed coin being
spent by an unconfirmed tx STILL counts as confirmed (with a compensating
negative unconfirmed). So a device that didn't make the send kept showing the
spent coin's value. Now the entry balance is derived from the actual unspent
set (listunspent, which excludes spent coins) — verified a spent coin clears.
2. Per-address rescan failing with 'electrum timeout: blockchain.scripthash.
get_balance': public Electrum servers can drop a response or the socket can
flap mid-call. _rpcCall now retries a couple of times on a fresh id (12s each)
before giving up.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Diffstat (limited to 'src/api.js')
0 files changed, 0 insertions, 0 deletions
