diff options
| author | Adam Soltys <[email protected]> | 2026-06-26 13:57:27 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-06-26 13:57:27 -0700 |
| commit | bb939f73e4e02b528e346b9f9d909c3a25cfedbb (patch) | |
| tree | 8fe13e6b2dc644bbf13ee3fba0d47877b0450f96 /src/format.js | |
| parent | 9f4bc29025287e8e12a7ef31c9918c1adfdfff5d (diff) | |
| download | coinosv3-bb939f73e4e02b528e346b9f9d909c3a25cfedbb.tar.gz coinosv3-bb939f73e4e02b528e346b9f9d909c3a25cfedbb.zip | |
Update balance/history optimistically right after a send
On the Electrum backend the post-send rescan is many round-trips, so the balance
lagged a few seconds. Now a successful broadcast immediately applies the tx
locally (applySentTx): drop the spent coins, credit change as pending, add a
pending history row, recompute the balance, and emit — so the UI reflects the
send instantly. The realtime watcher / backstop poll reconciles and fills in the
confirmation once the explorer has indexed it (no immediate rescan, so a
not-yet-indexed tx can't briefly revert the optimistic state). Verified the
balance/utxo/history math.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Diffstat (limited to 'src/format.js')
0 files changed, 0 insertions, 0 deletions
