Browse Source

fix forgotten occurence of account in trustedcoin plugin

283
ThomasV 8 years ago
parent
commit
6e6ba37e7e
  1. 6
      plugins/trustedcoin/qt.py

6
plugins/trustedcoin/qt.py

@ -41,13 +41,13 @@ from electrum.plugins import hook
from trustedcoin import TrustedCoinPlugin, server from trustedcoin import TrustedCoinPlugin, server
def need_server(wallet, tx): 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 # Detect if the server is needed
long_id, short_id = wallet.get_user_id() long_id, short_id = wallet.get_user_id()
xpub3 = wallet.master_public_keys['x3/'] xpub3 = wallet.master_public_keys['x3/']
for x in tx.inputs_to_sign(): for x in tx.inputs_to_sign():
if x[0:2] == 'ff': if is_xpubkey(x):
xpub, sequence = BIP32_Account.parse_xpubkey(x) xpub, sequence = parse_xpubkey(x)
if xpub == xpub3: if xpub == xpub3:
return True return True
return False return False

Loading…
Cancel
Save