Skip to content

Commit 150e10a

Browse files
committed
Drop unnecessary fail_htlcs_.._without_forwarding_event
.. as `fail_htlcs_backwards_internal` now does the same thing
1 parent 799d657 commit 150e10a

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7647,21 +7647,9 @@ where
76477647
}
76487648
}
76497649

7650-
fn fail_htlc_backwards_internal(
7651-
&self, source: &HTLCSource, payment_hash: &PaymentHash, onion_error: &HTLCFailReason,
7652-
destination: HTLCHandlingFailureType,
7653-
) {
7654-
self.fail_htlc_backwards_internal_without_forward_event(
7655-
source,
7656-
payment_hash,
7657-
onion_error,
7658-
destination,
7659-
);
7660-
}
7661-
76627650
/// Fails an HTLC backwards to the sender of it to us.
76637651
/// Note that we do not assume that channels corresponding to failed HTLCs are still available.
7664-
fn fail_htlc_backwards_internal_without_forward_event(
7652+
fn fail_htlc_backwards_internal(
76657653
&self, source: &HTLCSource, payment_hash: &PaymentHash, onion_error: &HTLCFailReason,
76667654
failure_type: HTLCHandlingFailureType,
76677655
) {
@@ -10194,7 +10182,7 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
1019410182
for (htlc_source, payment_hash, failure_reason, destination) in
1019510183
failed_intercept_forwards.drain(..)
1019610184
{
10197-
self.fail_htlc_backwards_internal_without_forward_event(
10185+
self.fail_htlc_backwards_internal(
1019810186
&htlc_source,
1019910187
&payment_hash,
1020010188
&failure_reason,

0 commit comments

Comments
 (0)