redo fixes for 1324
This commit is contained in:
parent
ccd07c6a80
commit
fa2de58c90
|
@ -99,13 +99,14 @@ class WalletSynchronizer():
|
||||||
# Check that txids are unique
|
# Check that txids are unique
|
||||||
hashes = set(map(lambda item: item['tx_hash'], result))
|
hashes = set(map(lambda item: item['tx_hash'], result))
|
||||||
if len(hashes) != len(result):
|
if len(hashes) != len(result):
|
||||||
raise Exception("error: server history has non-unique txids: %s"
|
self.print_error("error: server history has non-unique txids: %s"% addr)
|
||||||
% addr)
|
return
|
||||||
|
|
||||||
# Check that the status corresponds to what was announced
|
# Check that the status corresponds to what was announced
|
||||||
hist = map(lambda item: (item['tx_hash'], item['height']), result)
|
hist = map(lambda item: (item['tx_hash'], item['height']), result)
|
||||||
if self.wallet.get_status(hist) != server_status:
|
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
|
# Store received history
|
||||||
self.wallet.receive_history_callback(addr, hist)
|
self.wallet.receive_history_callback(addr, hist)
|
||||||
|
|
Loading…
Reference in New Issue