1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-11 07:50:57 +00:00

core/reset device: remove unnecessary check

This commit is contained in:
Tomas Susanka 2019-06-24 14:49:19 +02:00
parent a978290d50
commit 0daf2bf6b6

View File

@ -108,8 +108,6 @@ def _validate_reset_device(msg):
raise wire.ProcessError("Can't show internal entropy when backup is skipped")
if storage.is_initialized():
raise wire.UnexpectedMessage("Already initialized")
if (msg.skip_backup or msg.no_backup) and msg.slip39:
raise wire.ProcessError("Both no/skip backup flag and Shamir SLIP-39 required.")
def _compute_secret_from_entropy(