File tree Expand file tree Collapse file tree 2 files changed +0
-25
lines changed Expand file tree Collapse file tree 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 {
343343 }
344344}
345345
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-
359346/// We use this to track static counterparty commitment transaction data and to generate any
360347/// justice or 2nd-stage preimage/timeout transactions.
361348#[ derive( Clone , PartialEq , Eq ) ]
Original file line number Diff line number Diff line change @@ -718,18 +718,6 @@ impl HTLCSource {
718718 }
719719 }
720720
721- #[cfg(debug_assertions)]
722- /// Checks whether this HTLCSource could possibly match the given HTLC output in a commitment
723- /// transaction. Useful to ensure different datastructures match up.
724- pub(crate) fn possibly_matches_output(&self, htlc: &super::chan_utils::HTLCOutputInCommitment) -> bool {
725- if let HTLCSource::OutboundRoute { first_hop_htlc_msat, .. } = self {
726- *first_hop_htlc_msat == htlc.amount_msat
727- } else {
728- // There's nothing we can check for forwarded HTLCs
729- true
730- }
731- }
732-
733721 /// Returns the CLTV expiry of the inbound HTLC (i.e. the source referred to by this object),
734722 /// if the source was a forwarded HTLC and the HTLC was first forwarded on LDK 0.1.1 or later.
735723 pub(crate) fn inbound_htlc_expiry(&self) -> Option<u32> {
You can’t perform that action at this time.
0 commit comments