@@ -12,7 +12,7 @@ use crate::blinded_path;
12
12
use crate :: blinded_path:: payment:: { PaymentConstraints , PaymentRelay } ;
13
13
use crate :: chain:: channelmonitor:: { HTLC_FAIL_BACK_BUFFER , LATENCY_GRACE_PERIOD_BLOCKS } ;
14
14
use 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 } ;
16
16
use crate :: ln:: features:: BlindedHopFeatures ;
17
17
use crate :: ln:: msgs;
18
18
use crate :: ln:: onion_utils;
@@ -106,7 +106,12 @@ pub(super) fn create_fwd_pending_htlc_info(
106
106
onion_packet : outgoing_packet,
107
107
short_channel_id,
108
108
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
+ } ) ,
110
115
} ,
111
116
payment_hash : msg. payment_hash ,
112
117
incoming_shared_secret : shared_secret,
0 commit comments