File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -833,16 +833,15 @@ impl Satisfaction {
833
833
// signatures
834
834
let mut sat_indices = ( 0 ..subs. len ( ) ) . collect :: < Vec < _ > > ( ) ;
835
835
sat_indices. sort_by_key ( |& i| {
836
- let stack_weight = match ( & sats[ i] . stack , & ret_stack[ i] . stack ) {
836
+ // For malleable satifactions, directly choose smallest weights
837
+ match ( & sats[ i] . stack , & ret_stack[ i] . stack ) {
837
838
( & Witness :: Unavailable , _) | ( & Witness :: Impossible , _) => i64:: MAX ,
838
839
// This is only possible when one of the branches has PkH
839
840
( _, & Witness :: Unavailable ) | ( _, & Witness :: Impossible ) => i64:: MIN ,
840
841
( & Witness :: Stack ( ref s) , & Witness :: Stack ( ref d) ) => {
841
842
witness_size ( s) as i64 - witness_size ( d) as i64
842
843
}
843
- } ;
844
- // For malleable satifactions, directly choose smallest weights
845
- stack_weight
844
+ }
846
845
} ) ;
847
846
848
847
// swap the satisfactions
You can’t perform that action at this time.
0 commit comments