ttrezor: check device on load_wallet - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit 45a55e258f36144a9315db9a6e45145de4f7f80f
DIR parent 6446d6685996e36cd6fe9b2b25e66287211bae68
HTML Author: ThomasV <thomasv@gitorious>
Date: Fri, 12 Sep 2014 19:24:01 +0200
ttrezor: check device on load_wallet
Diffstat:
M plugins/trezor.py | 2 ++
1 file changed, 2 insertions(+), 0 deletions(-)
---
DIR diff --git a/plugins/trezor.py b/plugins/trezor.py
t@@ -82,6 +82,8 @@ class Plugin(BasePlugin):
@hook
def load_wallet(self, wallet):
self.wallet = wallet
+ if not self.wallet.check_proper_device():
+ QMessageBox.information(None, _('Error'), _("This wallet does not match your Trezor device"), _('OK'))
@hook
def installwizard_restore(self, wizard, storage):