trezor: add missing parameters for reset_device
This commit is contained in:
parent
713a803e0f
commit
6cf10e54d0
|
@ -0,0 +1,6 @@
|
||||||
|
#!/bin/bash
|
||||||
|
rm -rf dist
|
||||||
|
VERSION=`git describe --tags`
|
||||||
|
python2 setup-release.py py2app
|
||||||
|
hdiutil create -fs HFS+ -volname "Electrum" -srcfolder dist/Electrum.app dist/electrum-$VERSION.dmg
|
||||||
|
|
|
@ -193,8 +193,11 @@ class TrezorCompatiblePlugin(HW_PluginBase):
|
||||||
|
|
||||||
if method == TIM_NEW:
|
if method == TIM_NEW:
|
||||||
strength = 64 * (item + 2) # 128, 192 or 256
|
strength = 64 * (item + 2) # 128, 192 or 256
|
||||||
|
u2f_counter = 0
|
||||||
|
skip_backup = False
|
||||||
client.reset_device(True, strength, passphrase_protection,
|
client.reset_device(True, strength, passphrase_protection,
|
||||||
pin_protection, label, language)
|
pin_protection, label, language,
|
||||||
|
u2f_counter, skip_backup)
|
||||||
elif method == TIM_RECOVER:
|
elif method == TIM_RECOVER:
|
||||||
word_count = 6 * (item + 2) # 12, 18 or 24
|
word_count = 6 * (item + 2) # 12, 18 or 24
|
||||||
client.step = 0
|
client.step = 0
|
||||||
|
|
Loading…
Reference in New Issue