git://git.novaco.in
/
electrum-nvc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
2cb5b14
)
use history to determine if the wallet has been used
author
thomasv
<thomasv@gitorious>
Wed, 27 Feb 2013 09:13:03 +0000 (10:13 +0100)
committer
thomasv
<thomasv@gitorious>
Wed, 27 Feb 2013 09:13:03 +0000 (10:13 +0100)
lib/wallet.py
patch
|
blob
|
history
diff --git
a/lib/wallet.py
b/lib/wallet.py
index
96a193d
..
76575fe
100644
(file)
--- 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():