mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-31 17:31:36 +00:00
fix: num_accounts should return only confirmed bip32 accounts
This commit is contained in:
parent
fa4c2b96d7
commit
7f67b36a19
2 changed files with 7 additions and 2 deletions
|
@ -71,7 +71,7 @@ class PendingAccount(Account):
|
|||
def dump(self):
|
||||
return {'pending':self.addresses[0]}
|
||||
|
||||
def get_name(self):
|
||||
def get_name(self, k):
|
||||
return _('Pending account')
|
||||
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue