From e4dc3f37529073d24cb77373c9a82e2f332eab9d Mon Sep 17 00:00:00 2001 From: thomasv Date: Wed, 27 Feb 2013 10:13:03 +0100 Subject: [PATCH] use history to determine if the wallet has been used --- lib/wallet.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/wallet.py b/lib/wallet.py index 96a193d75..76575fec5 100644 --- a/lib/wallet.py +++ b/lib/wallet.py @@ -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():