wizard: abort if device fails to create xpub
This commit is contained in:
parent
66f8fe7648
commit
5e90b3a42d
|
@ -213,6 +213,9 @@ class BaseWizard(object):
|
||||||
from keystore import hardware_keystore, bip44_derivation
|
from keystore import hardware_keystore, bip44_derivation
|
||||||
derivation = bip44_derivation(int(account_id))
|
derivation = bip44_derivation(int(account_id))
|
||||||
xpub = self.plugin.get_xpub(device_info.device.id_, derivation, self)
|
xpub = self.plugin.get_xpub(device_info.device.id_, derivation, self)
|
||||||
|
if xpub is None:
|
||||||
|
self.show_error('Cannot read xpub from device')
|
||||||
|
return
|
||||||
d = {
|
d = {
|
||||||
'type': 'hardware',
|
'type': 'hardware',
|
||||||
'hw_type': name,
|
'hw_type': name,
|
||||||
|
|
Loading…
Reference in New Issue