Browse Source

fix wallet.clear_history()

it would result in "wallet.get_history() failed balance sanity-check"

maybe related: https://github.com/spesmilo/electrum/issues/6792
patch-4
SomberNight 4 years ago
parent
commit
859f8ccf8e
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 1
      electrum/address_synchronizer.py

1
electrum/address_synchronizer.py

@ -458,6 +458,7 @@ class AddressSynchronizer(Logger):
with self.transaction_lock:
self.db.clear_history()
self._history_local.clear()
self._get_addr_balance_cache = {} # invalidate cache
def get_txpos(self, tx_hash):
"""Returns (height, txpos) tuple, even if the tx is unverified."""

Loading…
Cancel
Save