@@ -210,9 +210,8 @@ pub struct BlindedForward {
210210impl PendingHTLCRouting {
211211 // Used to override the onion failure code and data if the HTLC is blinded.
212212 fn blinded_failure(&self) -> Option<BlindedFailure> {
213- // TODO: needs update when we support forwarding blinded HTLCs as non-intro node
214213 match self {
215- Self::Forward { blinded: Some(_ ), .. } => Some(BlindedFailure::FromIntroductionNode ),
214+ Self::Forward { blinded: Some(BlindedForward { failure, .. } ), .. } => Some(*failure ),
216215 Self::Receive { requires_blinded_error: true, .. } => Some(BlindedFailure::FromBlindedNode),
217216 _ => None,
218217 }
@@ -3031,8 +3030,9 @@ where
30313030
30323031 let is_intro_node_forward = match next_hop {
30333032 onion_utils::Hop::Forward {
3034- // TODO: update this when we support blinded forwarding as non-intro node
3035- next_hop_data: msgs::InboundOnionPayload::BlindedForward { .. }, ..
3033+ next_hop_data: msgs::InboundOnionPayload::BlindedForward {
3034+ intro_node_blinding_point: Some(_), ..
3035+ }, ..
30363036 } => true,
30373037 _ => false,
30383038 };
@@ -4377,7 +4377,7 @@ where
43774377 incoming_packet_shared_secret: incoming_shared_secret,
43784378 // Phantom payments are only PendingHTLCRouting::Receive.
43794379 phantom_shared_secret: None,
4380- blinded_failure: blinded.map(|_| BlindedFailure::FromIntroductionNode ),
4380+ blinded_failure: blinded.map(|b| b.failure ),
43814381 });
43824382 let next_blinding_point = blinded.and_then(|b| {
43834383 let encrypted_tlvs_ss = self.node_signer.ecdh(
0 commit comments