mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-31 17:31:36 +00:00
fix forgotten occurence of account in trustedcoin plugin
This commit is contained in:
parent
bfd7709ccd
commit
6e6ba37e7e
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue