Files
purple-electrumwallet/electrum
f321x 663fcddc0c AddressSynchronizer: invalidate balance cache on spv
There was a race incorrectly counting transactions with one
confirmations to the unconfirmed balance instead of the confirmed
balance.
This happened because the balance cache of AddressSynchronizer got
invalidated after `on_event_blockchain_updated` and then again after
`receive_history_callback`->`add_transaction`, however when calling
`AddressSynchronizer.get_balance()` before the tx got spv verified the
height would still be counted as 0 (unconfirmed), populating the balance
cache again with the unconfirmed balance.
I noticed this only on QML due to timing differences to Qt.
Invalidating the cache in `AddressSynchronizer.add_verified_tx()` after
the tx got verified causes the balance to get recalculated and shown
correctly.
2026-01-07 18:15:08 +01:00
..
2025-08-23 18:59:14 +00:00
2025-08-18 15:38:25 +00:00
2025-12-02 10:38:10 +01:00
2025-12-17 10:23:16 +00:00
2025-08-08 14:34:53 +00:00
2025-09-13 23:12:44 -04:00