Skip to content

Commit 03b6e0e

Browse files
committed
Drop unnecessary fail_htlcs_.._without_forwarding_event
.. as `fail_htlcs_backwards_internal` now does the same thing
1 parent d292f96 commit 03b6e0e

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
@@ -7642,21 +7642,9 @@ where
76427642
}
76437643
}
76447644

7645-
fn fail_htlc_backwards_internal(
7646-
&self, source: &HTLCSource, payment_hash: &PaymentHash, onion_error: &HTLCFailReason,
7647-
destination: HTLCHandlingFailureType,
7648-
) {
7649-
self.fail_htlc_backwards_internal_without_forward_event(
7650-
source,
7651-
payment_hash,
7652-
onion_error,
7653-
destination,
7654-
);
7655-
}
7656-
76577645
/// Fails an HTLC backwards to the sender of it to us.
76587646
/// Note that we do not assume that channels corresponding to failed HTLCs are still available.
7659-
fn fail_htlc_backwards_internal_without_forward_event(
7647+
fn fail_htlc_backwards_internal(
76607648
&self, source: &HTLCSource, payment_hash: &PaymentHash, onion_error: &HTLCFailReason,
76617649
failure_type: HTLCHandlingFailureType,
76627650
) {
@@ -10189,7 +10177,7 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
1018910177
for (htlc_source, payment_hash, failure_reason, destination) in
1019010178
failed_intercept_forwards.drain(..)
1019110179
{
10192-
self.fail_htlc_backwards_internal_without_forward_event(
10180+
self.fail_htlc_backwards_internal(
1019310181
&htlc_source,
1019410182
&payment_hash,
1019510183
&failure_reason,

0 commit comments

Comments
 (0)