commit 0f3b70ad881cfd9cbf0d622b21aa057c1705a36e parent e4f934a05fab7e750e18fd5161089725a2b4bef3 Author: ThomasV <thomasv@gitorious> Date: Fri, 14 Dec 2012 19:32:10 +0100 fix: do not request the same history twice Diffstat:
M | lib/wallet.py | | | 5 | +++-- |
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/lib/wallet.py b/lib/wallet.py @@ -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]