1
0
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:
Pavol Rusnak 2015-10-19 19:48:14 +02:00
parent 6475f98b1e
commit 8b0610c16a
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -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 = (