Skip to content

Commit 10715d1

Browse files
committed
Drop unnecessary fail_htlcs_.._without_forwarding_event
.. as `fail_htlcs_backwards_internal` now does the same thing
1 parent cef2560 commit 10715d1

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
@@ -7657,21 +7657,9 @@ where
76577657
}
76587658
}
76597659

7660-
fn fail_htlc_backwards_internal(
7661-
&self, source: &HTLCSource, payment_hash: &PaymentHash, onion_error: &HTLCFailReason,
7662-
destination: HTLCHandlingFailureType,
7663-
) {
7664-
self.fail_htlc_backwards_internal_without_forward_event(
7665-
source,
7666-
payment_hash,
7667-
onion_error,
7668-
destination,
7669-
);
7670-
}
7671-
76727660
/// Fails an HTLC backwards to the sender of it to us.
76737661
/// Note that we do not assume that channels corresponding to failed HTLCs are still available.
7674-
fn fail_htlc_backwards_internal_without_forward_event(
7662+
fn fail_htlc_backwards_internal(
76757663
&self, source: &HTLCSource, payment_hash: &PaymentHash, onion_error: &HTLCFailReason,
76767664
failure_type: HTLCHandlingFailureType,
76777665
) {
@@ -10064,7 +10052,7 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
1006410052
for (htlc_source, payment_hash, failure_reason, destination) in
1006510053
failed_intercept_forwards.drain(..)
1006610054
{
10067-
self.fail_htlc_backwards_internal_without_forward_event(
10055+
self.fail_htlc_backwards_internal(
1006810056
&htlc_source,
1006910057
&payment_hash,
1007010058
&failure_reason,

0 commit comments

Comments
 (0)