Browse Source

redo fixes for 1324

283
ThomasV 10 years ago
parent
commit
fa2de58c90
  1. 7
      lib/synchronizer.py

7
lib/synchronizer.py

@ -99,13 +99,14 @@ class WalletSynchronizer():
# Check that txids are unique
hashes = set(map(lambda item: item['tx_hash'], result))
if len(hashes) != len(result):
raise Exception("error: server history has non-unique txids: %s"
% addr)
self.print_error("error: server history has non-unique txids: %s"% addr)
return
# Check that the status corresponds to what was announced
hist = map(lambda item: (item['tx_hash'], item['height']), result)
if self.wallet.get_status(hist) != server_status:
raise Exception("error: status mismatch: %s" % addr)
self.print_error("error: status mismatch: %s" % addr)
return
# Store received history
self.wallet.receive_history_callback(addr, hist)

Loading…
Cancel
Save