raise exception on history with repeated tx
This commit is contained in:
@@ -1056,8 +1056,7 @@ class WalletSynchronizer(threading.Thread):
|
|||||||
hist.append( (tx_hash, item['height']) )
|
hist.append( (tx_hash, item['height']) )
|
||||||
|
|
||||||
if len(hist) != len(result):
|
if len(hist) != len(result):
|
||||||
print "error: non-unique txid"
|
raise BaseException("error: server sent history with non-unique txid")
|
||||||
continue
|
|
||||||
|
|
||||||
# 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):
|
||||||
|
|||||||
Reference in New Issue
Block a user