psbt: always include full prev tx (#6198)
* enable streaming full UTXOs for all types of inputs Co-authored-by: SomberNight <somber.night@protonmail.com>
This commit is contained in:
@@ -88,8 +88,8 @@ class TrezorKeyStore(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):
|
||||
raise UserFacingException(_('Missing previous tx for legacy input.'))
|
||||
if txin.utxo is None:
|
||||
raise UserFacingException(_('Missing previous tx.'))
|
||||
prev_tx[tx_hash] = txin.utxo
|
||||
|
||||
self.plugin.sign_transaction(self, tx, prev_tx)
|
||||
|
||||
Reference in New Issue
Block a user