fix: do not request the same history twice

This commit is contained in:
ThomasV 2012-12-14 19:32:10 +01:00
parent e4f934a05f
commit 0f3b70ad88
1 changed files with 3 additions and 2 deletions

View File

@ -1252,8 +1252,9 @@ class WalletSynchronizer(threading.Thread):
if method == 'blockchain.address.subscribe':
addr = params[0]
if self.wallet.get_status(self.wallet.get_history(addr)) != result:
self.interface.send([('blockchain.address.get_history', [addr])], 'synchronizer')
requested_histories[addr] = result
if requested_histories.get(addr) is None:
self.interface.send([('blockchain.address.get_history', [addr])], 'synchronizer')
requested_histories[addr] = result
elif method == 'blockchain.address.get_history':
addr = params[0]