Merge pull request #10396 from f321x/fix_qml_balance
AddressSynchronizer: invalidate balance cache on spv
This commit is contained in:
@@ -413,8 +413,7 @@ class AddressSynchronizer(Logger, EventListener):
|
||||
tx = self.db.remove_transaction(tx_hash)
|
||||
remove_from_spent_outpoints()
|
||||
self._remove_tx_from_local_history(tx_hash)
|
||||
for addr in itertools.chain(self.db.get_txi_addresses(tx_hash), self.db.get_txo_addresses(tx_hash)):
|
||||
self.invalidate_cache()
|
||||
self.invalidate_cache()
|
||||
self.db.remove_txi(tx_hash)
|
||||
self.db.remove_txo(tx_hash)
|
||||
self.db.remove_tx_fee(tx_hash)
|
||||
@@ -653,6 +652,7 @@ class AddressSynchronizer(Logger, EventListener):
|
||||
with self.lock:
|
||||
self.unverified_tx.pop(tx_hash, None)
|
||||
self.db.add_verified_tx(tx_hash, info)
|
||||
self.invalidate_cache()
|
||||
util.trigger_callback('adb_added_verified_tx', self, tx_hash)
|
||||
|
||||
@with_lock
|
||||
|
||||
Reference in New Issue
Block a user