File tree 2 files changed +0
-25
lines changed
2 files changed +0
-25
lines changed Original file line number Diff line number Diff line change @@ -343,19 +343,6 @@ impl From<&HolderCommitment> for HolderSignedTx {
343
343
}
344
344
}
345
345
346
- impl HolderSignedTx {
347
- fn non_dust_htlcs ( & self ) -> Vec < HTLCOutputInCommitment > {
348
- self . htlc_outputs . iter ( ) . filter_map ( |( htlc, _, _) | {
349
- if htlc. transaction_output_index . is_some ( ) {
350
- Some ( htlc. clone ( ) )
351
- } else {
352
- None
353
- }
354
- } )
355
- . collect ( )
356
- }
357
- }
358
-
359
346
/// We use this to track static counterparty commitment transaction data and to generate any
360
347
/// justice or 2nd-stage preimage/timeout transactions.
361
348
#[ derive( Clone , PartialEq , Eq ) ]
Original file line number Diff line number Diff line change @@ -721,18 +721,6 @@ impl HTLCSource {
721
721
}
722
722
}
723
723
724
- #[cfg(debug_assertions)]
725
- /// Checks whether this HTLCSource could possibly match the given HTLC output in a commitment
726
- /// transaction. Useful to ensure different datastructures match up.
727
- pub(crate) fn possibly_matches_output(&self, htlc: &super::chan_utils::HTLCOutputInCommitment) -> bool {
728
- if let HTLCSource::OutboundRoute { first_hop_htlc_msat, .. } = self {
729
- *first_hop_htlc_msat == htlc.amount_msat
730
- } else {
731
- // There's nothing we can check for forwarded HTLCs
732
- true
733
- }
734
- }
735
-
736
724
/// Returns the CLTV expiry of the inbound HTLC (i.e. the source referred to by this object),
737
725
/// if the source was a forwarded HTLC and the HTLC was first forwarded on LDK 0.1.1 or later.
738
726
pub(crate) fn inbound_htlc_expiry(&self) -> Option<u32> {
You can’t perform that action at this time.
0 commit comments