@@ -12,7 +12,7 @@ use crate::blinded_path;
1212use crate :: blinded_path:: payment:: { PaymentConstraints , PaymentRelay } ;
1313use crate :: chain:: channelmonitor:: { HTLC_FAIL_BACK_BUFFER , LATENCY_GRACE_PERIOD_BLOCKS } ;
1414use crate :: ln:: PaymentHash ;
15- use crate :: ln:: channelmanager:: { BlindedForward , CLTV_FAR_FAR_AWAY , HTLCFailureMsg , MIN_CLTV_EXPIRY_DELTA , PendingHTLCInfo , PendingHTLCRouting } ;
15+ use crate :: ln:: channelmanager:: { BlindedFailure , BlindedForward , CLTV_FAR_FAR_AWAY , HTLCFailureMsg , MIN_CLTV_EXPIRY_DELTA , PendingHTLCInfo , PendingHTLCRouting } ;
1616use crate :: ln:: features:: BlindedHopFeatures ;
1717use crate :: ln:: msgs;
1818use crate :: ln:: onion_utils;
@@ -106,7 +106,12 @@ pub(super) fn create_fwd_pending_htlc_info(
106106 onion_packet : outgoing_packet,
107107 short_channel_id,
108108 blinded : intro_node_blinding_point. or ( msg. blinding_point )
109- . map ( |bp| BlindedForward { inbound_blinding_point : bp } ) ,
109+ . map ( |bp| BlindedForward {
110+ inbound_blinding_point : bp,
111+ failure : intro_node_blinding_point
112+ . map ( |_| BlindedFailure :: FromIntroductionNode )
113+ . unwrap_or ( BlindedFailure :: FromBlindedNode ) ,
114+ } ) ,
110115 } ,
111116 payment_hash : msg. payment_hash ,
112117 incoming_shared_secret : shared_secret,
0 commit comments