Skip to content

Commit 81cd02f

Browse files
committed
Drop unnecessary fail_htlcs_.._without_forwarding_event
.. as `fail_htlcs_backwards_internal` now does the same thing
1 parent a9bc181 commit 81cd02f

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
@@ -7650,21 +7650,9 @@ where
76507650
}
76517651
}
76527652

7653-
fn fail_htlc_backwards_internal(
7654-
&self, source: &HTLCSource, payment_hash: &PaymentHash, onion_error: &HTLCFailReason,
7655-
destination: HTLCHandlingFailureType,
7656-
) {
7657-
self.fail_htlc_backwards_internal_without_forward_event(
7658-
source,
7659-
payment_hash,
7660-
onion_error,
7661-
destination,
7662-
);
7663-
}
7664-
76657653
/// Fails an HTLC backwards to the sender of it to us.
76667654
/// Note that we do not assume that channels corresponding to failed HTLCs are still available.
7667-
fn fail_htlc_backwards_internal_without_forward_event(
7655+
fn fail_htlc_backwards_internal(
76687656
&self, source: &HTLCSource, payment_hash: &PaymentHash, onion_error: &HTLCFailReason,
76697657
failure_type: HTLCHandlingFailureType,
76707658
) {
@@ -10057,7 +10045,7 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
1005710045
for (htlc_source, payment_hash, failure_reason, destination) in
1005810046
failed_intercept_forwards.drain(..)
1005910047
{
10060-
self.fail_htlc_backwards_internal_without_forward_event(
10048+
self.fail_htlc_backwards_internal(
1006110049
&htlc_source,
1006210050
&payment_hash,
1006310051
&failure_reason,

0 commit comments

Comments
 (0)