use history to determine if the wallet has been used
authorthomasv <thomasv@gitorious>
Wed, 27 Feb 2013 09:13:03 +0000 (10:13 +0100)
committerthomasv <thomasv@gitorious>
Wed, 27 Feb 2013 09:13:03 +0000 (10:13 +0100)
lib/wallet.py

index 96a193d..76575fe 100644 (file)
@@ -336,7 +336,8 @@ class Wallet:
 
 
     def is_found(self):
-        return (len(self.change_addresses) > self.gap_limit_for_change ) or ( len(self.addresses) > self.gap_limit )
+        return self.history.values() != [[]] * len(self.history) 
+
 
     def fill_addressbook(self):
         for tx_hash, tx in self.transactions.items():