diff --git a/lib/synchronizer.py b/lib/synchronizer.py index 6555d0d0..5464299b 100644 --- a/lib/synchronizer.py +++ b/lib/synchronizer.py @@ -99,13 +99,14 @@ class WalletSynchronizer(): # Check that txids are unique hashes = set(map(lambda item: item['tx_hash'], result)) if len(hashes) != len(result): - raise Exception("error: server history has non-unique txids: %s" - % addr) + self.print_error("error: server history has non-unique txids: %s"% addr) + return # Check that the status corresponds to what was announced hist = map(lambda item: (item['tx_hash'], item['height']), result) if self.wallet.get_status(hist) != server_status: - raise Exception("error: status mismatch: %s" % addr) + self.print_error("error: status mismatch: %s" % addr) + return # Store received history self.wallet.receive_history_callback(addr, hist)