mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-14 03:30:02 +00:00
feat(core): add check to derive_and_store_roots btc_only variant
[no changelog]
This commit is contained in:
parent
c10c0cca60
commit
da52023194
@ -75,6 +75,9 @@ if utils.BITCOIN_ONLY:
|
||||
if msg.passphrase is not None and msg.on_device:
|
||||
raise DataError("Passphrase provided when it shouldn't be!")
|
||||
|
||||
if ctx.cache.is_set(APP_COMMON_SEED):
|
||||
raise Exception("Seed is already set!")
|
||||
|
||||
from trezor import wire
|
||||
|
||||
if not storage_device.is_initialized():
|
||||
@ -99,9 +102,6 @@ else:
|
||||
if not storage_device.is_initialized():
|
||||
raise wire.NotInitialized("Device is not initialized")
|
||||
|
||||
if ctx.cache.is_set(APP_COMMON_SEED):
|
||||
raise Exception("Seed is already set!")
|
||||
|
||||
if ctx.cache.is_set(APP_CARDANO_ICARUS_SECRET):
|
||||
raise Exception("Cardano icarus secret is already set!")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user