1
0

transaction: change Transaction.is_segwit_input(txin) to txin.is_segwit()

This commit is contained in:
SomberNight
2020-10-24 08:03:13 +02:00
parent 4c7a92f39c
commit eefb68c82b
6 changed files with 32 additions and 30 deletions

View File

@@ -53,7 +53,7 @@ class KeepKey_KeyStore(Hardware_KeyStore):
prev_tx = {}
for txin in tx.inputs():
tx_hash = txin.prevout.txid.hex()
if txin.utxo is None and not Transaction.is_segwit_input(txin):
if txin.utxo is None and not txin.is_segwit():
raise UserFacingException(_('Missing previous tx for legacy input.'))
prev_tx[tx_hash] = txin.utxo