Skip to content

Commit 9c53916

Browse files
committed
Drop unnecessary fail_htlcs_.._without_forwarding_event
.. as `fail_htlcs_backwards_internal` now does the same thing
1 parent 31a257b commit 9c53916

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

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

0 commit comments

Comments
 (0)