From da93473ee15aa35a9c3c8c75c08c4fb93a94b73f Mon Sep 17 00:00:00 2001 From: ThomasV Date: Wed, 7 Nov 2012 20:48:42 +0100 Subject: [PATCH] raise exception on history with repeated tx --- lib/wallet.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/wallet.py b/lib/wallet.py index dfa9573d..9a5db91e 100644 --- a/lib/wallet.py +++ b/lib/wallet.py @@ -1056,8 +1056,7 @@ class WalletSynchronizer(threading.Thread): hist.append( (tx_hash, item['height']) ) if len(hist) != len(result): - print "error: non-unique txid" - continue + raise BaseException("error: server sent history with non-unique txid") # check that the status corresponds to what was announced if self.wallet.get_status(hist) != requested_histories.pop(addr):