1
0

AddressSynchronizer: remove unneccessary loop

This loop seems like a leftover that is not useful anymore, clearing the
cache once has the same effect.
This commit is contained in:
f321x
2026-01-07 16:24:50 +01:00
parent 2172dadf62
commit 72f083d2d0

View File

@@ -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)