Skip to content

Commit 10b83ae

Browse files
committed
Drop unnecessary fail_htlcs_.._without_forwarding_event
.. as `fail_htlcs_backwards_internal` now does the same thing
1 parent 5cb750c commit 10b83ae

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
@@ -7774,21 +7774,9 @@ where
77747774
}
77757775
}
77767776

7777-
fn fail_htlc_backwards_internal(
7778-
&self, source: &HTLCSource, payment_hash: &PaymentHash, onion_error: &HTLCFailReason,
7779-
destination: HTLCHandlingFailureType,
7780-
) {
7781-
self.fail_htlc_backwards_internal_without_forward_event(
7782-
source,
7783-
payment_hash,
7784-
onion_error,
7785-
destination,
7786-
);
7787-
}
7788-
77897777
/// Fails an HTLC backwards to the sender of it to us.
77907778
/// Note that we do not assume that channels corresponding to failed HTLCs are still available.
7791-
fn fail_htlc_backwards_internal_without_forward_event(
7779+
fn fail_htlc_backwards_internal(
77927780
&self, source: &HTLCSource, payment_hash: &PaymentHash, onion_error: &HTLCFailReason,
77937781
failure_type: HTLCHandlingFailureType,
77947782
) {
@@ -10182,7 +10170,7 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
1018210170
for (htlc_source, payment_hash, failure_reason, destination) in
1018310171
failed_intercept_forwards.drain(..)
1018410172
{
10185-
self.fail_htlc_backwards_internal_without_forward_event(
10173+
self.fail_htlc_backwards_internal(
1018610174
&htlc_source,
1018710175
&payment_hash,
1018810176
&failure_reason,

0 commit comments

Comments
 (0)