From 65d2a55bff79168747d23524899c1f264580f817 Mon Sep 17 00:00:00 2001 From: matejcik Date: Tue, 24 Sep 2019 14:07:46 +0200 Subject: [PATCH] core/recovery: improve comment --- core/src/apps/management/recovery_device/homescreen.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/src/apps/management/recovery_device/homescreen.py b/core/src/apps/management/recovery_device/homescreen.py index b8fef05117..89b6c58e87 100644 --- a/core/src/apps/management/recovery_device/homescreen.py +++ b/core/src/apps/management/recovery_device/homescreen.py @@ -74,9 +74,10 @@ async def _continue_recovery_process(ctx: wire.Context) -> Success: try: secret, backup_type = await _process_words(ctx, words) - # If _process_words succeeded, backup_type will be set. - # Otherwise we are still in "first step". - is_first_step = backup_type is None + # If _process_words succeeded, we now have both backup_type (from + # its result) and word_count (from _request_word_count earlier), which means + # that the first step is complete. + is_first_step = False except MnemonicError: await layout.show_invalid_mnemonic(ctx, word_count)