spend: don't populate non_witness_utxo for Taproot
This commit is contained in:
parent
8596ca76f3
commit
e05039f67b
@ -763,7 +763,9 @@ pub fn create_spend(
|
||||
value: cand.amount,
|
||||
script_pubkey: coin_desc.script_pubkey(),
|
||||
});
|
||||
psbt_in.non_witness_utxo = tx_getter.get_tx(&cand.outpoint.txid);
|
||||
if !main_descriptor.is_taproot() {
|
||||
psbt_in.non_witness_utxo = tx_getter.get_tx(&cand.outpoint.txid);
|
||||
}
|
||||
psbt_ins.push(psbt_in);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user