git://git.novaco.in
/
electrum-nvc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
fix: num_accounts should return only confirmed bip32 accounts
[electrum-nvc.git]
/
lib
/
wallet.py
diff --git
a/lib/wallet.py
b/lib/wallet.py
index
557b8e2
..
ebd2429
100644
(file)
--- a/
lib/wallet.py
+++ b/
lib/wallet.py
@@
-1391,7
+1391,12
@@
class NewWallet(Deterministic_Wallet):
def num_accounts(self):
- keys = self.accounts.keys()
+ keys = []
+ for k, v in self.accounts.items():
+ if type(v) != BIP32_Account:
+ continue
+ keys.append(k)
+
i = 0
while True:
account_id = self.account_id(i)