URI: 
       tfix: do not request the same history twice - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 0f3b70ad881cfd9cbf0d622b21aa057c1705a36e
   DIR parent e4f934a05fab7e750e18fd5161089725a2b4bef3
  HTML 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(-)
       ---
   DIR diff --git a/lib/wallet.py b/lib/wallet.py
       t@@ -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]