1
0

keepkey: fix TIM_RECOVER restore method

follow-up 8be3c4dadd
related: https://github.com/spesmilo/electrum/pull/8560#discussion_r1329127300
This commit is contained in:
SomberNight
2023-09-22 16:23:10 +00:00
parent 44dddee4d2
commit 0a3dd8e5e5

View File

@@ -211,7 +211,7 @@ class KeepKeyPlugin(HW_PluginBase):
client.reset_device(True, strength, passphrase_protection,
pin_protection, label, language)
elif method == TIM_RECOVER:
word_count = 6 * (item + 2) # 12, 18 or 24
word_count = 24 # looks like this value is ignored by the device, but it has to be one of {12,18,24}
client.step = 0
client.recovery_device(word_count, passphrase_protection,
pin_protection, label, language)