Skip to content

Commit bab678b

Browse files
committed
remove non-cannonical from andor dissat
1 parent 4469366 commit bab678b

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/miniscript/types/extra_props.rs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -679,13 +679,9 @@ impl Property for ExtData {
679679
a.stack_elem_count_dissat
680680
.and_then(|a_dis| c.stack_elem_count_sat.map(|c| c + a_dis)),
681681
),
682-
stack_elem_count_dissat: cmp::max(
683-
// non-cannonical
684-
a.stack_elem_count_sat
685-
.and_then(|a| b.stack_elem_count_dissat.map(|b| b + a)),
686-
a.stack_elem_count_dissat
687-
.and_then(|a_dis| c.stack_elem_count_dissat.map(|c| c + a_dis)),
688-
),
682+
stack_elem_count_dissat: a
683+
.stack_elem_count_dissat
684+
.and_then(|a_dis| c.stack_elem_count_dissat.map(|c| c + a_dis)),
689685
max_sat_size: cmp::max(
690686
a.max_sat_size
691687
.and_then(|(wa, sa)| b.max_sat_size.map(|(wb, sb)| (wa + wb, sa + sb))),

0 commit comments

Comments
 (0)