URI: 
       tComment on wallet classes. Use address_is_old to check if address is beyond gap limit - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 8795e1a74624199c656dde5a6e07fc054ecbab23
   DIR parent 8d06fc0143a26ad4f3d0add1d941b0932601e21b
  HTML Author: ThomasV <thomasv@gitorious>
       Date:   Wed, 25 Jun 2014 10:53:06 +0200
       
       Comment on wallet classes. Use address_is_old to check if address is beyond gap limit
       
       Diffstat:
         M lib/wallet.py                       |       7 +++++--
       
       1 file changed, 5 insertions(+), 2 deletions(-)
       ---
   DIR diff --git a/lib/wallet.py b/lib/wallet.py
       t@@ -128,6 +128,10 @@ class WalletStorage:
        
        
        class Abstract_Wallet:
       +    """
       +    Wallet classes are created to handle various address generation methods.
       +    Completion states (watching-only, single account, no seed, etc) are handled inside classes.
       +    """
        
            def __init__(self, storage):
                self.storage = storage
       t@@ -1252,8 +1256,7 @@ class Deterministic_Wallet(Abstract_Wallet):
                    return False
                prev_addresses = prev_addresses[max(0, i - limit):]
                for addr in prev_addresses:
       -            num, is_used = self.is_used(addr)
       -            if num > 0:
       +            if self.address_is_old(addr):
                        return False
                return True