diff --git a/src/psbt/mod.rs b/src/psbt/mod.rs index 3834d6a5e..4dd1c95c8 100644 --- a/src/psbt/mod.rs +++ b/src/psbt/mod.rs @@ -965,7 +965,7 @@ impl PsbtInputExt for psbt::Input { } None => { match derived { - Descriptor::Tr(_) => { /*Tr outputs can always omit non_witness_utxo*/ } + Descriptor::Tr(_) if check_witness_utxo => { /*can be omited*/ } _ => return Err(UpdateInputError::NonWitnessUtxoCheck), } }