Browse Source

fix: do not request the same history twice

283
ThomasV 12 years ago
parent
commit
0f3b70ad88
  1. 5
      lib/wallet.py

5
lib/wallet.py

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

Loading…
Cancel
Save