tfix forgotten occurence of account in trustedcoin plugin - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit 6e6ba37e7e9ad83a95f2cd347cb84f2aff159c6a
DIR parent bfd7709ccd023fb18d60346f09cd3240e51dc732
HTML Author: ThomasV <thomasv@electrum.org>
Date: Wed, 17 Aug 2016 15:28:37 +0200
fix forgotten occurence of account in trustedcoin plugin
Diffstat:
M plugins/trustedcoin/qt.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
DIR diff --git a/plugins/trustedcoin/qt.py b/plugins/trustedcoin/qt.py
t@@ -41,13 +41,13 @@ from electrum.plugins import hook
from trustedcoin import TrustedCoinPlugin, server
def need_server(wallet, tx):
- from electrum.account import BIP32_Account
+ from electrum.keystore import parse_xpubkey, is_xpubkey
# Detect if the server is needed
long_id, short_id = wallet.get_user_id()
xpub3 = wallet.master_public_keys['x3/']
for x in tx.inputs_to_sign():
- if x[0:2] == 'ff':
- xpub, sequence = BIP32_Account.parse_xpubkey(x)
+ if is_xpubkey(x):
+ xpub, sequence = parse_xpubkey(x)
if xpub == xpub3:
return True
return False