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 @@ -355,19 +355,6 @@ impl HolderCommitment {
355355 }
356356}
357357
358- impl HolderSignedTx {
359- fn non_dust_htlcs ( & self ) -> Vec < HTLCOutputInCommitment > {
360- self . htlc_outputs . iter ( ) . filter_map ( |( htlc, _, _) | {
361- if htlc. transaction_output_index . is_some ( ) {
362- Some ( htlc. clone ( ) )
363- } else {
364- None
365- }
366- } )
367- . collect ( )
368- }
369- }
370-
371358/// We use this to track static counterparty commitment transaction data and to generate any
372359/// justice or 2nd-stage preimage/timeout transactions.
373360#[ 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