Client-side fix for #1324
Print messages rather than throwing uncaught exceptions that kill the thread. I cannot fix the server side as I have no way to test it.
This commit is contained in:
parent
dbdbdc8792
commit
d0308010da
|
@ -146,12 +146,14 @@ class WalletSynchronizer(util.DaemonThread):
|
||||||
hist.append( (tx_hash, item['height']) )
|
hist.append( (tx_hash, item['height']) )
|
||||||
|
|
||||||
if len(hist) != len(result):
|
if len(hist) != len(result):
|
||||||
raise Exception("error: server sent history with non-unique txid", result)
|
self.print_error("error: server sent history with non-unique txid", result)
|
||||||
|
continue
|
||||||
|
|
||||||
# check that the status corresponds to what was announced
|
# check that the status corresponds to what was announced
|
||||||
rs = requested_histories.pop(addr)
|
rs = requested_histories.pop(addr)
|
||||||
if self.wallet.get_status(hist) != rs:
|
if self.wallet.get_status(hist) != rs:
|
||||||
raise Exception("error: status mismatch: %s"%addr)
|
self.print_error("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