@@ -3297,7 +3297,7 @@ macro_rules! handle_monitor_update_completion {
32973297 }
32983298 $self.finalize_claims(updates.finalized_claimed_htlcs);
32993299 for failure in updates.failed_htlcs.drain(..) {
3300- let receiver = HTLCHandlingType::NextHopChannel { node_id: Some(counterparty_node_id), channel_id };
3300+ let receiver = HTLCHandlingType::ForwardFailed { node_id: Some(counterparty_node_id), channel_id };
33013301 $self.fail_htlc_backwards_internal(&failure.0, &failure.1, &failure.2, receiver);
33023302 }
33033303 } }
@@ -3917,7 +3917,7 @@ where
39173917 for htlc_source in failed_htlcs.drain(..) {
39183918 let failure_reason = LocalHTLCFailureReason::DroppedPending;
39193919 let reason = HTLCFailReason::from_failure_code(failure_reason);
3920- let receiver = HTLCHandlingType::NextHopChannel { node_id: Some(*counterparty_node_id), channel_id: *channel_id };
3920+ let receiver = HTLCHandlingType::ForwardFailed { node_id: Some(*counterparty_node_id), channel_id: *channel_id };
39213921 self.fail_htlc_backwards_internal(&htlc_source.0, &htlc_source.1, &reason, receiver);
39223922 }
39233923
@@ -4041,7 +4041,7 @@ where
40414041 let (source, payment_hash, counterparty_node_id, channel_id) = htlc_source;
40424042 let failure_reason = LocalHTLCFailureReason::DroppedPending;
40434043 let reason = HTLCFailReason::from_failure_code(failure_reason);
4044- let receiver = HTLCHandlingType::NextHopChannel { node_id: Some(counterparty_node_id), channel_id };
4044+ let receiver = HTLCHandlingType::ForwardFailed { node_id: Some(counterparty_node_id), channel_id };
40454045 self.fail_htlc_backwards_internal(&source, &payment_hash, &reason, receiver);
40464046 }
40474047 if let Some((_, funding_txo, _channel_id, monitor_update)) = shutdown_res.monitor_update {
@@ -5737,7 +5737,7 @@ where
57375737 if let Some(outgoing_scid) = outgoing_scid_opt {
57385738 match self.short_to_chan_info.read().unwrap().get(&outgoing_scid) {
57395739 Some((outgoing_counterparty_node_id, outgoing_channel_id)) =>
5740- HTLCHandlingType::NextHopChannel {
5740+ HTLCHandlingType::ForwardFailed {
57415741 node_id: Some(*outgoing_counterparty_node_id),
57425742 channel_id: *outgoing_channel_id,
57435743 },
@@ -6104,7 +6104,7 @@ where
61046104 let data = self.get_htlc_inbound_temp_fail_data(reason);
61056105 failed_forwards.push((htlc_source, payment_hash,
61066106 HTLCFailReason::reason(reason, data),
6107- HTLCHandlingType::NextHopChannel { node_id: Some(chan.context.get_counterparty_node_id()), channel_id: forward_chan_id }
6107+ HTLCHandlingType::ForwardFailed { node_id: Some(chan.context.get_counterparty_node_id()), channel_id: forward_chan_id }
61086108 ));
61096109 } else {
61106110 forwarding_channel_not_found!(core::iter::once(forward_info).chain(draining_pending_forwards));
@@ -6960,7 +6960,7 @@ where
69606960
69616961 for (htlc_src, payment_hash) in htlcs_to_fail.drain(..) {
69626962 let reason = HTLCFailReason::reason(failure_reason, onion_failure_data.clone());
6963- let receiver = HTLCHandlingType::NextHopChannel { node_id: Some(counterparty_node_id.clone()), channel_id };
6963+ let receiver = HTLCHandlingType::ForwardFailed { node_id: Some(counterparty_node_id.clone()), channel_id };
69646964 self.fail_htlc_backwards_internal(&htlc_src, &payment_hash, &reason, receiver);
69656965 }
69666966 }
@@ -8745,7 +8745,7 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
87458745 }
87468746 }
87478747 for htlc_source in dropped_htlcs.drain(..) {
8748- let receiver = HTLCHandlingType::NextHopChannel { node_id: Some(counterparty_node_id.clone()), channel_id: msg.channel_id };
8748+ let receiver = HTLCHandlingType::ForwardFailed { node_id: Some(counterparty_node_id.clone()), channel_id: msg.channel_id };
87498749 let reason = HTLCFailReason::from_failure_code(LocalHTLCFailureReason::DroppedPending);
87508750 self.fail_htlc_backwards_internal(&htlc_source.0, &htlc_source.1, &reason, receiver);
87518751 }
@@ -9571,7 +9571,7 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
95719571 } else {
95729572 log_trace!(logger, "Failing HTLC with hash {} from our monitor", &htlc_update.payment_hash);
95739573 let failure_reason = LocalHTLCFailureReason::ChannelClosed;
9574- let receiver = HTLCHandlingType::NextHopChannel { node_id: Some(counterparty_node_id), channel_id };
9574+ let receiver = HTLCHandlingType::ForwardFailed { node_id: Some(counterparty_node_id), channel_id };
95759575 let reason = HTLCFailReason::from_failure_code(failure_reason);
95769576 self.fail_htlc_backwards_internal(&htlc_update.source, &htlc_update.payment_hash, &reason, receiver);
95779577 }
@@ -11649,7 +11649,7 @@ where
1164911649 let reason = LocalHTLCFailureReason::CLTVExpiryTooSoon;
1165011650 let data = self.get_htlc_inbound_temp_fail_data(reason);
1165111651 timed_out_htlcs.push((source, payment_hash, HTLCFailReason::reason(reason, data),
11652- HTLCHandlingType::NextHopChannel { node_id: Some(funded_channel.context.get_counterparty_node_id()), channel_id: funded_channel.context.channel_id() }));
11652+ HTLCHandlingType::ForwardFailed { node_id: Some(funded_channel.context.get_counterparty_node_id()), channel_id: funded_channel.context.channel_id() }));
1165311653 }
1165411654 let logger = WithChannelContext::from(&self.logger, &funded_channel.context, None);
1165511655 if let Some(channel_ready) = channel_ready_opt {
@@ -14875,7 +14875,7 @@ where
1487514875 for htlc_source in failed_htlcs.drain(..) {
1487614876 let (source, payment_hash, counterparty_node_id, channel_id) = htlc_source;
1487714877 let failure_reason = LocalHTLCFailureReason::DroppedPending;
14878- let receiver = HTLCHandlingType::NextHopChannel { node_id: Some(counterparty_node_id), channel_id };
14878+ let receiver = HTLCHandlingType::ForwardFailed { node_id: Some(counterparty_node_id), channel_id };
1487914879 let reason = HTLCFailReason::from_failure_code(failure_reason);
1488014880 channel_manager.fail_htlc_backwards_internal(&source, &payment_hash, &reason, receiver);
1488114881 }
0 commit comments