raise exception on status mismatch too
This commit is contained in:
parent
da93473ee1
commit
10b02b37c9
|
@ -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…
Reference in New Issue