File tree 1 file changed +11
-9
lines changed
1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -652,15 +652,17 @@ impl PackageTemplate {
652
652
// another output type, we'll likely end up with an incorrect transaction locktime since
653
653
// the counterparty has included it in its HTLC signature. This should never happen unless
654
654
// we decide to aggregate outputs across different channel commitments.
655
- #[ cfg( debug_assertions) ] if self . inputs . iter ( ) . find ( |( _, outp) |
656
- if let PackageSolvingData :: HolderHTLCOutput ( outp) = outp {
657
- outp. preimage . is_some ( )
658
- } else {
659
- false
660
- }
661
- ) . is_some ( ) {
662
- debug_assert_eq ! ( timelock, 0 ) ;
663
- } ;
655
+ #[ cfg( debug_assertions) ] {
656
+ if self . inputs . iter ( ) . any ( |( _, outp) |
657
+ if let PackageSolvingData :: HolderHTLCOutput ( outp) = outp {
658
+ outp. preimage . is_some ( )
659
+ } else {
660
+ false
661
+ }
662
+ ) {
663
+ debug_assert_eq ! ( timelock, 0 ) ;
664
+ } ;
665
+ }
664
666
timelock
665
667
}
666
668
pub ( crate ) fn package_weight ( & self , destination_script : & Script ) -> usize {
You can’t perform that action at this time.
0 commit comments