ttrezor: add missing parameters for reset_device - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit 6cf10e54d0b34224c1a5c189ddc04981c2c334f3
DIR parent 713a803e0fe01976cdb081ccd475055697ec04ea
HTML Author: ThomasV <thomasv@electrum.org>
Date: Sat, 12 Aug 2017 04:37:21 +0200
ttrezor: add missing parameters for reset_device
Diffstat:
A contrib/make_osx | 6 ++++++
M plugins/trezor/plugin.py | 5 ++++-
2 files changed, 10 insertions(+), 1 deletion(-)
---
DIR diff --git a/contrib/make_osx b/contrib/make_osx
t@@ -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
+
DIR diff --git a/plugins/trezor/plugin.py b/plugins/trezor/plugin.py
t@@ -193,8 +193,11 @@ class TrezorCompatiblePlugin(HW_PluginBase):
if method == TIM_NEW:
strength = 64 * (item + 2) # 128, 192 or 256
+ u2f_counter = 0
+ skip_backup = False
client.reset_device(True, strength, passphrase_protection,
- pin_protection, label, language)
+ pin_protection, label, language,
+ u2f_counter, skip_backup)
elif method == TIM_RECOVER:
word_count = 6 * (item + 2) # 12, 18 or 24
client.step = 0