@@ -196,12 +196,12 @@ pub enum PendingHTLCRouting {
196
196
/// [`Event::PaymentClaimable::onion_fields`] as
197
197
/// [`RecipientOnionFields::sender_custom_tlvs`].
198
198
sender_custom_tlvs: Vec<(u64, Vec<u8>)>,
199
- /// Custom TLVs set by the receiver in the blinded path used to reach them.
199
+ /// Custom data set by the receiver in the blinded path used to reach them.
200
200
///
201
201
/// For HTLCs received by LDK, this will be exposed in
202
202
/// [`Event::PaymentClaimable::onion_fields`] as
203
- /// [`RecipientOnionFields::user_custom_tlvs `].
204
- user_custom_tlvs : Vec<u8>,
203
+ /// [`RecipientOnionFields::user_custom_data `].
204
+ user_custom_data : Vec<u8>,
205
205
/// Set if this HTLC is the final hop in a multi-hop blinded path.
206
206
requires_blinded_error: bool,
207
207
},
@@ -232,11 +232,11 @@ pub enum PendingHTLCRouting {
232
232
/// For HTLCs received by LDK, these will ultimately bubble back up as
233
233
/// [`RecipientOnionFields::sender_custom_tlvs`].
234
234
sender_custom_tlvs: Vec<(u64, Vec<u8>)>,
235
- /// Custom TLVs set by the receiver in the blinded path used to reach them.
235
+ /// Custom data set by the receiver in the blinded path used to reach them.
236
236
///
237
237
/// For HTLCs received by LDK, these will ultimately bubble back up as
238
- /// [`RecipientOnionFields::user_custom_tlvs `].
239
- user_custom_tlvs : Vec<u8>,
238
+ /// [`RecipientOnionFields::user_custom_data `].
239
+ user_custom_data : Vec<u8>,
240
240
/// Set if this HTLC is the final hop in a multi-hop blinded path.
241
241
requires_blinded_error: bool,
242
242
/// Set if we are receiving a keysend to a blinded path, meaning we created the
@@ -5996,26 +5996,26 @@ where
5996
5996
) = match routing {
5997
5997
PendingHTLCRouting::Receive {
5998
5998
payment_data, payment_metadata, payment_context,
5999
- incoming_cltv_expiry, phantom_shared_secret, sender_custom_tlvs, user_custom_tlvs ,
5999
+ incoming_cltv_expiry, phantom_shared_secret, sender_custom_tlvs, user_custom_data ,
6000
6000
requires_blinded_error: _
6001
6001
} => {
6002
6002
let _legacy_hop_data = Some(payment_data.clone());
6003
6003
let onion_fields = RecipientOnionFields { payment_secret: Some(payment_data.payment_secret),
6004
- payment_metadata, sender_custom_tlvs, user_custom_tlvs };
6004
+ payment_metadata, sender_custom_tlvs, user_custom_data };
6005
6005
(incoming_cltv_expiry, OnionPayload::Invoice { _legacy_hop_data },
6006
6006
Some(payment_data), payment_context, phantom_shared_secret, onion_fields,
6007
6007
true)
6008
6008
},
6009
6009
PendingHTLCRouting::ReceiveKeysend {
6010
6010
payment_data, payment_preimage, payment_metadata,
6011
- incoming_cltv_expiry, sender_custom_tlvs, user_custom_tlvs , requires_blinded_error: _,
6011
+ incoming_cltv_expiry, sender_custom_tlvs, user_custom_data , requires_blinded_error: _,
6012
6012
has_recipient_created_payment_secret,
6013
6013
} => {
6014
6014
let onion_fields = RecipientOnionFields {
6015
6015
payment_secret: payment_data.as_ref().map(|data| data.payment_secret),
6016
6016
payment_metadata,
6017
6017
sender_custom_tlvs,
6018
- user_custom_tlvs ,
6018
+ user_custom_data ,
6019
6019
};
6020
6020
(incoming_cltv_expiry, OnionPayload::Spontaneous(payment_preimage),
6021
6021
payment_data, None, None, onion_fields, has_recipient_created_payment_secret)
@@ -12363,7 +12363,7 @@ impl_writeable_tlv_based_enum!(PendingHTLCRouting,
12363
12363
(5, sender_custom_tlvs, optional_vec),
12364
12364
(7, requires_blinded_error, (default_value, false)),
12365
12365
(9, payment_context, option),
12366
- (11, user_custom_tlvs , optional_vec),
12366
+ (11, user_custom_data , optional_vec),
12367
12367
},
12368
12368
(2, ReceiveKeysend) => {
12369
12369
(0, payment_preimage, required),
@@ -12373,7 +12373,7 @@ impl_writeable_tlv_based_enum!(PendingHTLCRouting,
12373
12373
(4, payment_data, option), // Added in 0.0.116
12374
12374
(5, sender_custom_tlvs, optional_vec),
12375
12375
(7, has_recipient_created_payment_secret, (default_value, false)),
12376
- (9, user_custom_tlvs , optional_vec),
12376
+ (9, user_custom_data , optional_vec),
12377
12377
},
12378
12378
);
12379
12379
@@ -15369,7 +15369,7 @@ mod tests {
15369
15369
payment_secret: PaymentSecret([0; 32]), total_msat: sender_intended_amt_msat,
15370
15370
}),
15371
15371
sender_custom_tlvs: Vec::new(),
15372
- user_custom_tlvs : Vec::new(),
15372
+ user_custom_data : Vec::new(),
15373
15373
};
15374
15374
// Check that if the amount we received + the penultimate hop extra fee is less than the sender
15375
15375
// intended amount, we fail the payment.
@@ -15392,7 +15392,7 @@ mod tests {
15392
15392
payment_secret: PaymentSecret([0; 32]), total_msat: sender_intended_amt_msat,
15393
15393
}),
15394
15394
sender_custom_tlvs: Vec::new(),
15395
- user_custom_tlvs : Vec::new(),
15395
+ user_custom_data : Vec::new(),
15396
15396
};
15397
15397
let current_height: u32 = node[0].node.best_block.read().unwrap().height;
15398
15398
assert!(create_recv_pending_htlc_info(hop_data, [0; 32], PaymentHash([0; 32]),
@@ -15417,7 +15417,7 @@ mod tests {
15417
15417
payment_secret: PaymentSecret([0; 32]), total_msat: 100,
15418
15418
}),
15419
15419
sender_custom_tlvs: Vec::new(),
15420
- user_custom_tlvs : Vec::new(),
15420
+ user_custom_data : Vec::new(),
15421
15421
}, [0; 32], PaymentHash([0; 32]), 100, 23, None, true, None, current_height,
15422
15422
node[0].node.default_configuration.accept_mpp_keysend);
15423
15423
0 commit comments