Browse Source

log if get_history fails sanity check

master
Sander van Grieken 3 years ago
parent
commit
21d1842b84
  1. 1
      electrum/address_synchronizer.py

1
electrum/address_synchronizer.py

@ -538,6 +538,7 @@ class AddressSynchronizer(Logger, EventListener):
# sanity check # sanity check
c, u, x = self.get_balance(domain) c, u, x = self.get_balance(domain)
if balance != c + u + x: if balance != c + u + x:
self.logger.error(f'sanity check failed! c={c},u={u},x={x} while history balance={balance}')
raise Exception("wallet.get_history() failed balance sanity-check") raise Exception("wallet.get_history() failed balance sanity-check")
return h2 return h2

Loading…
Cancel
Save