1
0

A fix and cleanups for hardware wallets

This commit is contained in:
Neil Booth
2015-12-26 12:02:19 +09:00
parent 8f91af28a5
commit c298860e11
4 changed files with 8 additions and 36 deletions

View File

@@ -1681,7 +1681,8 @@ class BIP32_HD_Wallet(BIP32_Wallet):
def create_main_account(self, password):
# First check the password is valid (this raises if it isn't).
self.check_password(password)
if self.can_change_password():
self.check_password(password)
assert self.next_account_number() == 0
self.create_next_account(password, _('Main account'))
self.create_next_account(password)