@@ -3298,7 +3298,7 @@ macro_rules! handle_monitor_update_completion {
32983298 }
32993299 $self.finalize_claims(updates.finalized_claimed_htlcs);
33003300 for failure in updates.failed_htlcs.drain(..) {
3301- let receiver = HTLCHandlingFailureType::NextHopChannel { node_id: Some(counterparty_node_id), channel_id };
3301+ let receiver = HTLCHandlingFailureType::Forward { node_id: Some(counterparty_node_id), channel_id };
33023302 $self.fail_htlc_backwards_internal(&failure.0, &failure.1, &failure.2, receiver);
33033303 }
33043304 } }
@@ -3924,7 +3924,7 @@ where
39243924 for htlc_source in failed_htlcs.drain(..) {
39253925 let failure_reason = LocalHTLCFailureReason::ChannelClosed;
39263926 let reason = HTLCFailReason::from_failure_code(failure_reason);
3927- let receiver = HTLCHandlingFailureType::NextHopChannel { node_id: Some(*counterparty_node_id), channel_id: *channel_id };
3927+ let receiver = HTLCHandlingFailureType::Forward { node_id: Some(*counterparty_node_id), channel_id: *channel_id };
39283928 self.fail_htlc_backwards_internal(&htlc_source.0, &htlc_source.1, &reason, receiver);
39293929 }
39303930
@@ -4048,7 +4048,7 @@ where
40484048 let (source, payment_hash, counterparty_node_id, channel_id) = htlc_source;
40494049 let failure_reason = LocalHTLCFailureReason::ChannelClosed;
40504050 let reason = HTLCFailReason::from_failure_code(failure_reason);
4051- let receiver = HTLCHandlingFailureType::NextHopChannel { node_id: Some(counterparty_node_id), channel_id };
4051+ let receiver = HTLCHandlingFailureType::Forward { node_id: Some(counterparty_node_id), channel_id };
40524052 self.fail_htlc_backwards_internal(&source, &payment_hash, &reason, receiver);
40534053 }
40544054 if let Some((_, funding_txo, _channel_id, monitor_update)) = shutdown_res.monitor_update {
@@ -5748,7 +5748,7 @@ where
57485748 if let Some(outgoing_scid) = outgoing_scid_opt {
57495749 match self.short_to_chan_info.read().unwrap().get(&outgoing_scid) {
57505750 Some((outgoing_counterparty_node_id, outgoing_channel_id)) =>
5751- HTLCHandlingFailureType::NextHopChannel {
5751+ HTLCHandlingFailureType::Forward {
57525752 node_id: Some(*outgoing_counterparty_node_id),
57535753 channel_id: *outgoing_channel_id,
57545754 },
@@ -6116,7 +6116,7 @@ where
61166116 let data = self.get_htlc_inbound_temp_fail_data(reason);
61176117 failed_forwards.push((htlc_source, payment_hash,
61186118 HTLCFailReason::reason(reason, data),
6119- HTLCHandlingFailureType::NextHopChannel { node_id: Some(chan.context.get_counterparty_node_id()), channel_id: forward_chan_id }
6119+ HTLCHandlingFailureType::Forward { node_id: Some(chan.context.get_counterparty_node_id()), channel_id: forward_chan_id }
61206120 ));
61216121 } else {
61226122 forwarding_channel_not_found!(core::iter::once(forward_info).chain(draining_pending_forwards));
@@ -6969,7 +6969,7 @@ where
69696969
69706970 for (htlc_src, payment_hash) in htlcs_to_fail.drain(..) {
69716971 let reason = HTLCFailReason::reason(failure_reason, onion_failure_data.clone());
6972- let receiver = HTLCHandlingFailureType::NextHopChannel { node_id: Some(counterparty_node_id.clone()), channel_id };
6972+ let receiver = HTLCHandlingFailureType::Forward { node_id: Some(counterparty_node_id.clone()), channel_id };
69736973 self.fail_htlc_backwards_internal(&htlc_src, &payment_hash, &reason, receiver);
69746974 }
69756975 }
@@ -8755,7 +8755,7 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
87558755 }
87568756 }
87578757 for htlc_source in dropped_htlcs.drain(..) {
8758- let receiver = HTLCHandlingFailureType::NextHopChannel { node_id: Some(counterparty_node_id.clone()), channel_id: msg.channel_id };
8758+ let receiver = HTLCHandlingFailureType::Forward { node_id: Some(counterparty_node_id.clone()), channel_id: msg.channel_id };
87598759 let reason = HTLCFailReason::from_failure_code(LocalHTLCFailureReason::ChannelClosed);
87608760 self.fail_htlc_backwards_internal(&htlc_source.0, &htlc_source.1, &reason, receiver);
87618761 }
@@ -9613,7 +9613,7 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
96139613 } else {
96149614 log_trace!(logger, "Failing HTLC with hash {} from our monitor", &htlc_update.payment_hash);
96159615 let failure_reason = LocalHTLCFailureReason::OnChainTimeout;
9616- let receiver = HTLCHandlingFailureType::NextHopChannel { node_id: Some(counterparty_node_id), channel_id };
9616+ let receiver = HTLCHandlingFailureType::Forward { node_id: Some(counterparty_node_id), channel_id };
96179617 let reason = HTLCFailReason::from_failure_code(failure_reason);
96189618 self.fail_htlc_backwards_internal(&htlc_update.source, &htlc_update.payment_hash, &reason, receiver);
96199619 }
@@ -11692,7 +11692,7 @@ where
1169211692 let reason = LocalHTLCFailureReason::CLTVExpiryTooSoon;
1169311693 let data = self.get_htlc_inbound_temp_fail_data(reason);
1169411694 timed_out_htlcs.push((source, payment_hash, HTLCFailReason::reason(reason, data),
11695- HTLCHandlingFailureType::NextHopChannel { node_id: Some(funded_channel.context.get_counterparty_node_id()), channel_id: funded_channel.context.channel_id() }));
11695+ HTLCHandlingFailureType::Forward { node_id: Some(funded_channel.context.get_counterparty_node_id()), channel_id: funded_channel.context.channel_id() }));
1169611696 }
1169711697 let logger = WithChannelContext::from(&self.logger, &funded_channel.context, None);
1169811698 if let Some(channel_ready) = channel_ready_opt {
@@ -14932,7 +14932,7 @@ where
1493214932 for htlc_source in failed_htlcs.drain(..) {
1493314933 let (source, payment_hash, counterparty_node_id, channel_id) = htlc_source;
1493414934 let failure_reason = LocalHTLCFailureReason::ChannelClosed;
14935- let receiver = HTLCHandlingFailureType::NextHopChannel { node_id: Some(counterparty_node_id), channel_id };
14935+ let receiver = HTLCHandlingFailureType::Forward { node_id: Some(counterparty_node_id), channel_id };
1493614936 let reason = HTLCFailReason::from_failure_code(failure_reason);
1493714937 channel_manager.fail_htlc_backwards_internal(&source, &payment_hash, &reason, receiver);
1493814938 }
0 commit comments