mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-16 11:28:14 +00:00
add skip checksum option to load device
This commit is contained in:
parent
6475f98b1e
commit
8b0610c16a
@ -149,7 +149,7 @@ class Commands(object):
|
|||||||
if args.mnemonic:
|
if args.mnemonic:
|
||||||
mnemonic = ' '.join(args.mnemonic)
|
mnemonic = ' '.join(args.mnemonic)
|
||||||
return self.client.load_device_by_mnemonic(mnemonic, args.pin,
|
return self.client.load_device_by_mnemonic(mnemonic, args.pin,
|
||||||
args.passphrase_protection, args.label, 'english')
|
args.passphrase_protection, args.label, 'english', args.skip_checksum)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
return self.client.load_device_by_xprv(args.xprv, args.pin,
|
return self.client.load_device_by_xprv(args.xprv, args.pin,
|
||||||
@ -315,6 +315,7 @@ class Commands(object):
|
|||||||
(('-p', '--pin'), {'type': str, 'default': ''}),
|
(('-p', '--pin'), {'type': str, 'default': ''}),
|
||||||
(('-r', '--passphrase-protection'), {'action': 'store_true', 'default': False}),
|
(('-r', '--passphrase-protection'), {'action': 'store_true', 'default': False}),
|
||||||
(('-l', '--label'), {'type': str, 'default': ''}),
|
(('-l', '--label'), {'type': str, 'default': ''}),
|
||||||
|
(('-s', '--skip-checksum'), {'action': 'store_true', 'default': False}),
|
||||||
)
|
)
|
||||||
|
|
||||||
reset_device.arguments = (
|
reset_device.arguments = (
|
||||||
|
Loading…
Reference in New Issue
Block a user