diff --git a/plugins/trezor/plugin.py b/plugins/trezor/plugin.py index 4c4dc5710..c9e30d3f9 100644 --- a/plugins/trezor/plugin.py +++ b/plugins/trezor/plugin.py @@ -56,7 +56,7 @@ class TrezorCompatibleKeyStore(Hardware_KeyStore): pubkeys, x_pubkeys = tx.get_sorted_pubkeys(txin) tx_hash = txin['prevout_hash'] prev_tx[tx_hash] = txin['prev_tx'] - for x_pubkey in txin['x_pubkeys']: + for x_pubkey in x_pubkeys: if not is_xpubkey(x_pubkey): continue xpub, s = parse_xpubkey(x_pubkey)