1
0

log if get_history fails sanity check

This commit is contained in:
Sander van Grieken
2022-12-03 11:09:51 +01:00
parent 96f4530eb2
commit 21d1842b84

View File

@@ -538,6 +538,7 @@ class AddressSynchronizer(Logger, EventListener):
# sanity check
c, u, x = self.get_balance(domain)
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")
return h2