Browse Source

raise exception on status mismatch too

283
ThomasV 12 years ago
parent
commit
10b02b37c9
  1. 3
      lib/wallet.py

3
lib/wallet.py

@ -1060,8 +1060,7 @@ class WalletSynchronizer(threading.Thread):
# check that the status corresponds to what was announced # check that the status corresponds to what was announced
if self.wallet.get_status(hist) != requested_histories.pop(addr): if self.wallet.get_status(hist) != requested_histories.pop(addr):
print "error: status mismatch:", addr raise BaseException("error: status mismatch: %s"%addr)
continue
# store received history # store received history
self.wallet.receive_history_callback(addr, hist) self.wallet.receive_history_callback(addr, hist)

Loading…
Cancel
Save