Skip to content

Commit 829da29

Browse files
committed
Make sure at least one utxo is there for Tr input
We can only omit non_witness_utxo for Tr if it has witness_utxo.
1 parent 56bde55 commit 829da29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/psbt/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -965,7 +965,7 @@ impl PsbtInputExt for psbt::Input {
965965
}
966966
None => {
967967
match derived {
968-
Descriptor::Tr(_) => { /*Tr outputs can always omit non_witness_utxo*/ }
968+
Descriptor::Tr(_) if check_witness_utxo => { /*can be omited*/ }
969969
_ => return Err(UpdateInputError::NonWitnessUtxoCheck),
970970
}
971971
}

0 commit comments

Comments
 (0)