psbt: Allow both non_witness_utxo and witness_utxo

This commit is contained in:
Andrew Chow
2020-06-04 23:43:39 -04:00
parent 72f6bec1da
commit 5279d8bc07
5 changed files with 0 additions and 53 deletions

View File

@@ -2491,11 +2491,6 @@ TransactionError CWallet::FillPSBT(PartiallySignedTransaction& psbtx, bool& comp
continue;
}
// Verify input looks sane. This will check that we have at most one uxto, witness or non-witness.
if (!input.IsSane()) {
return TransactionError::INVALID_PSBT;
}
// If we have no utxo, grab it from the wallet.
if (!input.non_witness_utxo && input.witness_utxo.IsNull()) {
const uint256& txhash = txin.prevout.hash;