Permit empty passphrases when creating HW wallet
They used to be confused as a user cancel. Fixes #1788 Also fix Cancel pressed in passphrase dialog when *restoring* a hardware wallet in install wizard; it used to be taken as an empty passphrase. Like the password dialog it now cancels the wizard.
This commit is contained in:
@@ -98,9 +98,9 @@ class WizardBase(PrintError):
|
||||
True on success."""
|
||||
raise NotImplementedError
|
||||
|
||||
def request_passphrase(self, device_text, restore=True):
|
||||
"""Request a passphrase for a wallet from the given device and
|
||||
confirm it. restore is True if restoring a wallet. Should return
|
||||
def request_passphrase(self, device_text):
|
||||
"""When restoring a wallet, request the passphrase that was used for
|
||||
the wallet on the given device and confirm it. Should return
|
||||
a unicode string."""
|
||||
raise NotImplementedError
|
||||
|
||||
|
||||
Reference in New Issue
Block a user