Skip to content

Commit 36349ba

Browse files
committed
Invert malleability test in best_tap_spend
1 parent 5de4df8 commit 36349ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/descriptor/tr/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -488,12 +488,12 @@ where
488488
let mut min_wit_len = None;
489489
for leaf in spend_info.leaves() {
490490
let mut satisfaction = if allow_mall {
491-
match leaf.miniscript().build_template(provider) {
491+
match leaf.miniscript().build_template_mall(provider) {
492492
s @ Satisfaction { stack: Witness::Stack(_), .. } => s,
493493
_ => continue, // No witness for this script in tr descriptor, look for next one
494494
}
495495
} else {
496-
match leaf.miniscript().build_template_mall(provider) {
496+
match leaf.miniscript().build_template(provider) {
497497
s @ Satisfaction { stack: Witness::Stack(_), .. } => s,
498498
_ => continue, // No witness for this script in tr descriptor, look for next one
499499
}

0 commit comments

Comments
 (0)