From 0f3b70ad881cfd9cbf0d622b21aa057c1705a36e Mon Sep 17 00:00:00 2001 From: ThomasV Date: Fri, 14 Dec 2012 19:32:10 +0100 Subject: [PATCH] fix: do not request the same history twice --- lib/wallet.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/wallet.py b/lib/wallet.py index 9143d5214..0953b033a 100644 --- 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]