change: "Destroy Seed" purges all Trick PINs from SE2
This commit is contained in:
parent
b6098a94e5
commit
3ebde0ea34
@ -29,6 +29,7 @@ This lists the new changes that have not yet been published in a normal release.
|
||||
- Bugfix: Virtual Disk auto mode ignore already signed PSBTs (with "-signed" in file name)
|
||||
- Bugfix: Virtual Disk auto mode stuck on "Reading..." screen
|
||||
- Bugfix: Do not allow to change Main PIN to value already used as Trick PIN even if Trick PIN is hidden
|
||||
- Change: `Destroy Seed` also removes all Trick PINs from SE2
|
||||
|
||||
|
||||
# Mk4 Specific Changes
|
||||
|
||||
@ -524,6 +524,7 @@ async def new_from_dice(menu, label, item):
|
||||
async def any_active_duress_ux():
|
||||
from trick_pins import tp
|
||||
tp.reload()
|
||||
# if TPs are hidden this msg will not be shown
|
||||
if any(tp.get_duress_pins()):
|
||||
await ux_show_story('You have one or more duress wallets defined '
|
||||
'under Trick PINs. Please empty them, and clear '
|
||||
@ -579,7 +580,8 @@ async def clear_seed(*a):
|
||||
'All funds will be lost. '
|
||||
'You better have a backup of the seed words. '
|
||||
'All settings like multisig wallets are also wiped. '
|
||||
'Saved temporary seed settings and Seed Vault are lost.'):
|
||||
'Saved temporary seed settings and Seed Vault are lost. '
|
||||
'Trick PINs are also completely removed.'):
|
||||
return await ux_aborted()
|
||||
|
||||
if not await ux_confirm('''Are you REALLY sure though???\n\n\
|
||||
@ -588,6 +590,10 @@ unless you have a backup of the seed words and know how to import them into a \
|
||||
new wallet.''', confirm_key='4'):
|
||||
return await ux_aborted()
|
||||
|
||||
# clear all trick PINs from SE2
|
||||
from trick_pins import tp
|
||||
tp.clear_all()
|
||||
|
||||
# clear settings, address cache, settings from tmp seeds / seedvault seeds
|
||||
from files import wipe_flash_filesystem
|
||||
wipe_flash_filesystem(False)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user