Skip to content

Commit 58e89d1

Browse files
committed
Rename custom_tlvs -> sender_custom_tlvs
1 parent 703c1cf commit 58e89d1

File tree

11 files changed

+192
-190
lines changed

11 files changed

+192
-190
lines changed

lightning/src/events/mod.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -698,15 +698,15 @@ pub enum Event {
698698
/// [`ChannelManager::fail_htlc_backwards`] or [`ChannelManager::fail_htlc_backwards_with_reason`]
699699
/// to free up resources for this HTLC and avoid network congestion.
700700
///
701-
/// If [`Event::PaymentClaimable::onion_fields`] is `Some`, and includes custom TLVs with even type
701+
/// If [`Event::PaymentClaimable::onion_fields`] is `Some`, and includes sender custom TLVs with even type
702702
/// numbers, you should use [`ChannelManager::fail_htlc_backwards_with_reason`] with
703703
/// [`FailureCode::InvalidOnionPayload`] if you fail to understand and handle the contents, or
704-
/// [`ChannelManager::claim_funds_with_known_custom_tlvs`] upon successful handling.
705-
/// If you don't intend to check for custom TLVs, you can simply use
706-
/// [`ChannelManager::claim_funds`], which will automatically fail back even custom TLVs.
704+
/// [`ChannelManager::claim_funds_with_known_sender_custom_tlvs`] upon successful handling.
705+
/// If you don't intend to check for sender custom TLVs, you can simply use
706+
/// [`ChannelManager::claim_funds`], which will automatically fail back even sender custom TLVs.
707707
///
708708
/// If you fail to call [`ChannelManager::claim_funds`],
709-
/// [`ChannelManager::claim_funds_with_known_custom_tlvs`],
709+
/// [`ChannelManager::claim_funds_with_known_sender_custom_tlvs`],
710710
/// [`ChannelManager::fail_htlc_backwards`], or
711711
/// [`ChannelManager::fail_htlc_backwards_with_reason`] within the HTLC's timeout, the HTLC will
712712
/// be automatically failed.
@@ -725,7 +725,7 @@ pub enum Event {
725725
/// returning `Err(ReplayEvent ())`) and will be persisted across restarts.
726726
///
727727
/// [`ChannelManager::claim_funds`]: crate::ln::channelmanager::ChannelManager::claim_funds
728-
/// [`ChannelManager::claim_funds_with_known_custom_tlvs`]: crate::ln::channelmanager::ChannelManager::claim_funds_with_known_custom_tlvs
728+
/// [`ChannelManager::claim_funds_with_known_sender_custom_tlvs`]: crate::ln::channelmanager::ChannelManager::claim_funds_with_known_sender_custom_tlvs
729729
/// [`FailureCode::InvalidOnionPayload`]: crate::ln::channelmanager::FailureCode::InvalidOnionPayload
730730
/// [`ChannelManager::fail_htlc_backwards`]: crate::ln::channelmanager::ChannelManager::fail_htlc_backwards
731731
/// [`ChannelManager::fail_htlc_backwards_with_reason`]: crate::ln::channelmanager::ChannelManager::fail_htlc_backwards_with_reason

lightning/src/ln/blinded_payment_tests.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1360,7 +1360,7 @@ fn invalid_keysend_payment_secret() {
13601360
}
13611361

13621362
#[test]
1363-
fn custom_tlvs_to_blinded_path() {
1363+
fn sender_custom_tlvs_to_blinded_path() {
13641364
let chanmon_cfgs = create_chanmon_cfgs(2);
13651365
let node_cfgs = create_node_cfgs(2, &chanmon_cfgs);
13661366
let node_chanmgrs = create_node_chanmgrs(2, &node_cfgs, &[None, None]);
@@ -1389,7 +1389,7 @@ fn custom_tlvs_to_blinded_path() {
13891389
);
13901390

13911391
let recipient_onion_fields = RecipientOnionFields::spontaneous_empty()
1392-
.with_custom_tlvs(vec![((1 << 16) + 1, vec![42, 42])])
1392+
.with_sender_custom_tlvs(vec![((1 << 16) + 1, vec![42, 42])])
13931393
.unwrap();
13941394
nodes[0].node.send_payment(payment_hash, recipient_onion_fields.clone(),
13951395
PaymentId(payment_hash.0), route_params, Retry::Attempts(0)).unwrap();
@@ -1402,11 +1402,11 @@ fn custom_tlvs_to_blinded_path() {
14021402
let path = &[&nodes[1]];
14031403
let args = PassAlongPathArgs::new(&nodes[0], path, amt_msat, payment_hash, ev)
14041404
.with_payment_secret(payment_secret)
1405-
.with_custom_tlvs(recipient_onion_fields.custom_tlvs.clone());
1405+
.with_sender_custom_tlvs(recipient_onion_fields.sender_custom_tlvs.clone());
14061406
do_pass_along_path(args);
14071407
claim_payment_along_route(
14081408
ClaimAlongRouteArgs::new(&nodes[0], &[&[&nodes[1]]], payment_preimage)
1409-
.with_custom_tlvs(recipient_onion_fields.custom_tlvs.clone())
1409+
.with_sender_custom_tlvs(recipient_onion_fields.sender_custom_tlvs.clone())
14101410
);
14111411
}
14121412

lightning/src/ln/channelmanager.rs

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -189,12 +189,12 @@ pub enum PendingHTLCRouting {
189189
/// provide the onion shared secret used to decrypt the next level of forwarding
190190
/// instructions.
191191
phantom_shared_secret: Option<[u8; 32]>,
192-
/// Custom TLVs which were set by the sender.
192+
/// Sender custom TLVs which were set by the sender.
193193
///
194194
/// For HTLCs received by LDK, this will ultimately be exposed in
195195
/// [`Event::PaymentClaimable::onion_fields`] as
196-
/// [`RecipientOnionFields::custom_tlvs`].
197-
custom_tlvs: Vec<(u64, Vec<u8>)>,
196+
/// [`RecipientOnionFields::sender_custom_tlvs`].
197+
sender_custom_tlvs: Vec<(u64, Vec<u8>)>,
198198
/// Set if this HTLC is the final hop in a multi-hop blinded path.
199199
requires_blinded_error: bool,
200200
},
@@ -220,11 +220,11 @@ pub enum PendingHTLCRouting {
220220
///
221221
/// Used to track when we should expire pending HTLCs that go unclaimed.
222222
incoming_cltv_expiry: u32,
223-
/// Custom TLVs which were set by the sender.
223+
/// Sender custom TLVs which were set by the sender.
224224
///
225225
/// For HTLCs received by LDK, these will ultimately bubble back up as
226-
/// [`RecipientOnionFields::custom_tlvs`].
227-
custom_tlvs: Vec<(u64, Vec<u8>)>,
226+
/// [`RecipientOnionFields::sender_custom_tlvs`].
227+
sender_custom_tlvs: Vec<(u64, Vec<u8>)>,
228228
/// Set if this HTLC is the final hop in a multi-hop blinded path.
229229
requires_blinded_error: bool,
230230
/// Set if we are receiving a keysend to a blinded path, meaning we created the
@@ -912,17 +912,17 @@ struct ClaimablePayments {
912912
impl ClaimablePayments {
913913
/// Moves a payment from [`Self::claimable_payments`] to [`Self::pending_claiming_payments`].
914914
///
915-
/// If `custom_tlvs_known` is false and custom even TLVs are set by the sender, the set of
915+
/// If `sender_custom_tlvs_known` is false and custom even TLVs are set by the sender, the set of
916916
/// pending HTLCs will be returned in the `Err` variant of this method. They MUST then be
917917
/// failed by the caller as they will not be in either [`Self::claimable_payments`] or
918918
/// [`Self::pending_claiming_payments`].
919919
///
920-
/// If `custom_tlvs_known` is true, and a matching payment is found, it will always be moved.
920+
/// If `sender_custom_tlvs_known` is true, and a matching payment is found, it will always be moved.
921921
///
922922
/// If no payment is found, `Err(Vec::new())` is returned.
923923
fn begin_claiming_payment<L: Deref, S: Deref>(
924924
&mut self, payment_hash: PaymentHash, node_signer: &S, logger: &L,
925-
inbound_payment_id_secret: &[u8; 32], custom_tlvs_known: bool,
925+
inbound_payment_id_secret: &[u8; 32], sender_custom_tlvs_known: bool,
926926
) -> Result<(Vec<ClaimableHTLC>, ClaimingPayment), Vec<ClaimableHTLC>>
927927
where L::Target: Logger, S::Target: NodeSigner,
928928
{
@@ -939,10 +939,10 @@ impl ClaimablePayments {
939939
}
940940
}
941941

942-
if let Some(RecipientOnionFields { custom_tlvs, .. }) = &payment.onion_fields {
943-
if !custom_tlvs_known && custom_tlvs.iter().any(|(typ, _)| typ % 2 == 0) {
942+
if let Some(RecipientOnionFields { sender_custom_tlvs, .. }) = &payment.onion_fields {
943+
if !sender_custom_tlvs_known && sender_custom_tlvs.iter().any(|(typ, _)| typ % 2 == 0) {
944944
log_info!(logger, "Rejecting payment with payment hash {} as we cannot accept payment with unknown even TLVs: {}",
945-
&payment_hash, log_iter!(custom_tlvs.iter().map(|(typ, _)| typ).filter(|typ| *typ % 2 == 0)));
945+
&payment_hash, log_iter!(sender_custom_tlvs.iter().map(|(typ, _)| typ).filter(|typ| *typ % 2 == 0)));
946946
return Err(payment.htlcs);
947947
}
948948
}
@@ -6051,25 +6051,25 @@ where
60516051
) = match routing {
60526052
PendingHTLCRouting::Receive {
60536053
payment_data, payment_metadata, payment_context,
6054-
incoming_cltv_expiry, phantom_shared_secret, custom_tlvs,
6054+
incoming_cltv_expiry, phantom_shared_secret, sender_custom_tlvs,
60556055
requires_blinded_error: _
60566056
} => {
60576057
let _legacy_hop_data = Some(payment_data.clone());
60586058
let onion_fields = RecipientOnionFields { payment_secret: Some(payment_data.payment_secret),
6059-
payment_metadata, custom_tlvs };
6059+
payment_metadata, sender_custom_tlvs };
60606060
(incoming_cltv_expiry, OnionPayload::Invoice { _legacy_hop_data },
60616061
Some(payment_data), payment_context, phantom_shared_secret, onion_fields,
60626062
true)
60636063
},
60646064
PendingHTLCRouting::ReceiveKeysend {
60656065
payment_data, payment_preimage, payment_metadata,
6066-
incoming_cltv_expiry, custom_tlvs, requires_blinded_error: _,
6066+
incoming_cltv_expiry, sender_custom_tlvs, requires_blinded_error: _,
60676067
has_recipient_created_payment_secret,
60686068
} => {
60696069
let onion_fields = RecipientOnionFields {
60706070
payment_secret: payment_data.as_ref().map(|data| data.payment_secret),
60716071
payment_metadata,
6072-
custom_tlvs,
6072+
sender_custom_tlvs,
60736073
};
60746074
(incoming_cltv_expiry, OnionPayload::Spontaneous(payment_preimage),
60756075
payment_data, None, None, onion_fields, has_recipient_created_payment_secret)
@@ -6893,22 +6893,22 @@ where
68936893
/// event matches your expectation. If you fail to do so and call this method, you may provide
68946894
/// the sender "proof-of-payment" when they did not fulfill the full expected payment.
68956895
///
6896-
/// This function will fail the payment if it has custom TLVs with even type numbers, as we
6897-
/// will assume they are unknown. If you intend to accept even custom TLVs, you should use
6898-
/// [`claim_funds_with_known_custom_tlvs`].
6896+
/// This function will fail the payment if it has sender custom TLVs with even type numbers, as we
6897+
/// will assume they are unknown. If you intend to accept even sender custom TLVs, you should use
6898+
/// [`claim_funds_with_known_sender_custom_tlvs`].
68996899
///
69006900
/// [`Event::PaymentClaimable`]: crate::events::Event::PaymentClaimable
69016901
/// [`Event::PaymentClaimable::claim_deadline`]: crate::events::Event::PaymentClaimable::claim_deadline
69026902
/// [`Event::PaymentClaimed`]: crate::events::Event::PaymentClaimed
69036903
/// [`process_pending_events`]: EventsProvider::process_pending_events
69046904
/// [`create_inbound_payment`]: Self::create_inbound_payment
69056905
/// [`create_inbound_payment_for_hash`]: Self::create_inbound_payment_for_hash
6906-
/// [`claim_funds_with_known_custom_tlvs`]: Self::claim_funds_with_known_custom_tlvs
6906+
/// [`claim_funds_with_known_sender_custom_tlvs`]: Self::claim_funds_with_known_sender_custom_tlvs
69076907
pub fn claim_funds(&self, payment_preimage: PaymentPreimage) {
69086908
self.claim_payment_internal(payment_preimage, false);
69096909
}
69106910

6911-
/// This is a variant of [`claim_funds`] that allows accepting a payment with custom TLVs with
6911+
/// This is a variant of [`claim_funds`] that allows accepting a payment with sender custom TLVs with
69126912
/// even type numbers.
69136913
///
69146914
/// # Note
@@ -6917,19 +6917,19 @@ where
69176917
/// claim, otherwise you may unintentionally agree to some protocol you do not understand.
69186918
///
69196919
/// [`claim_funds`]: Self::claim_funds
6920-
pub fn claim_funds_with_known_custom_tlvs(&self, payment_preimage: PaymentPreimage) {
6920+
pub fn claim_funds_with_known_sender_custom_tlvs(&self, payment_preimage: PaymentPreimage) {
69216921
self.claim_payment_internal(payment_preimage, true);
69226922
}
69236923

6924-
fn claim_payment_internal(&self, payment_preimage: PaymentPreimage, custom_tlvs_known: bool) {
6924+
fn claim_payment_internal(&self, payment_preimage: PaymentPreimage, sender_custom_tlvs_known: bool) {
69256925
let payment_hash = PaymentHash(Sha256::hash(&payment_preimage.0).to_byte_array());
69266926

69276927
let _persistence_guard = PersistenceNotifierGuard::notify_on_drop(self);
69286928

69296929
let (sources, claiming_payment) = {
69306930
let res = self.claimable_payments.lock().unwrap().begin_claiming_payment(
69316931
payment_hash, &self.node_signer, &self.logger, &self.inbound_payment_id_secret,
6932-
custom_tlvs_known,
6932+
sender_custom_tlvs_known,
69336933
);
69346934

69356935
match res {
@@ -12389,7 +12389,7 @@ impl_writeable_tlv_based_enum!(PendingHTLCRouting,
1238912389
(1, phantom_shared_secret, option),
1239012390
(2, incoming_cltv_expiry, required),
1239112391
(3, payment_metadata, option),
12392-
(5, custom_tlvs, optional_vec),
12392+
(5, sender_custom_tlvs, optional_vec),
1239312393
(7, requires_blinded_error, (default_value, false)),
1239412394
(9, payment_context, option),
1239512395
},
@@ -12399,7 +12399,7 @@ impl_writeable_tlv_based_enum!(PendingHTLCRouting,
1239912399
(2, incoming_cltv_expiry, required),
1240012400
(3, payment_metadata, option),
1240112401
(4, payment_data, option), // Added in 0.0.116
12402-
(5, custom_tlvs, optional_vec),
12402+
(5, sender_custom_tlvs, optional_vec),
1240312403
(7, has_recipient_created_payment_secret, (default_value, false)),
1240412404
},
1240512405
);
@@ -15365,7 +15365,7 @@ mod tests {
1536515365
payment_data: Some(msgs::FinalOnionHopData {
1536615366
payment_secret: PaymentSecret([0; 32]), total_msat: sender_intended_amt_msat,
1536715367
}),
15368-
custom_tlvs: Vec::new(),
15368+
sender_custom_tlvs: Vec::new(),
1536915369
};
1537015370
// Check that if the amount we received + the penultimate hop extra fee is less than the sender
1537115371
// intended amount, we fail the payment.
@@ -15387,7 +15387,7 @@ mod tests {
1538715387
payment_data: Some(msgs::FinalOnionHopData {
1538815388
payment_secret: PaymentSecret([0; 32]), total_msat: sender_intended_amt_msat,
1538915389
}),
15390-
custom_tlvs: Vec::new(),
15390+
sender_custom_tlvs: Vec::new(),
1539115391
};
1539215392
let current_height: u32 = node[0].node.best_block.read().unwrap().height;
1539315393
assert!(create_recv_pending_htlc_info(hop_data, [0; 32], PaymentHash([0; 32]),
@@ -15411,7 +15411,7 @@ mod tests {
1541115411
payment_data: Some(msgs::FinalOnionHopData {
1541215412
payment_secret: PaymentSecret([0; 32]), total_msat: 100,
1541315413
}),
15414-
custom_tlvs: Vec::new(),
15414+
sender_custom_tlvs: Vec::new(),
1541515415
}, [0; 32], PaymentHash([0; 32]), 100, 23, None, true, None, current_height);
1541615416

1541715417
// Should not return an error as this condition:

lightning/src/ln/functional_test_utils.rs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2633,7 +2633,7 @@ pub struct PassAlongPathArgs<'a, 'b, 'c, 'd> {
26332633
pub clear_recipient_events: bool,
26342634
pub expected_preimage: Option<PaymentPreimage>,
26352635
pub is_probe: bool,
2636-
pub custom_tlvs: Vec<(u64, Vec<u8>)>,
2636+
pub sender_custom_tlvs: Vec<(u64, Vec<u8>)>,
26372637
pub payment_metadata: Option<Vec<u8>>,
26382638
pub expected_failure: Option<HTLCDestination>,
26392639
}
@@ -2646,7 +2646,7 @@ impl<'a, 'b, 'c, 'd> PassAlongPathArgs<'a, 'b, 'c, 'd> {
26462646
Self {
26472647
origin_node, expected_path, recv_value, payment_hash, payment_secret: None, event,
26482648
payment_claimable_expected: true, clear_recipient_events: true, expected_preimage: None,
2649-
is_probe: false, custom_tlvs: Vec::new(), payment_metadata: None, expected_failure: None,
2649+
is_probe: false, sender_custom_tlvs: Vec::new(), payment_metadata: None, expected_failure: None,
26502650
}
26512651
}
26522652
pub fn without_clearing_recipient_events(mut self) -> Self {
@@ -2670,8 +2670,8 @@ impl<'a, 'b, 'c, 'd> PassAlongPathArgs<'a, 'b, 'c, 'd> {
26702670
self.expected_preimage = Some(payment_preimage);
26712671
self
26722672
}
2673-
pub fn with_custom_tlvs(mut self, custom_tlvs: Vec<(u64, Vec<u8>)>) -> Self {
2674-
self.custom_tlvs = custom_tlvs;
2673+
pub fn with_sender_custom_tlvs(mut self, sender_custom_tlvs: Vec<(u64, Vec<u8>)>) -> Self {
2674+
self.sender_custom_tlvs = sender_custom_tlvs;
26752675
self
26762676
}
26772677
pub fn with_payment_metadata(mut self, payment_metadata: Vec<u8>) -> Self {
@@ -2689,7 +2689,7 @@ pub fn do_pass_along_path<'a, 'b, 'c>(args: PassAlongPathArgs) -> Option<Event>
26892689
let PassAlongPathArgs {
26902690
origin_node, expected_path, recv_value, payment_hash: our_payment_hash,
26912691
payment_secret: our_payment_secret, event: ev, payment_claimable_expected,
2692-
clear_recipient_events, expected_preimage, is_probe, custom_tlvs, payment_metadata,
2692+
clear_recipient_events, expected_preimage, is_probe, sender_custom_tlvs, payment_metadata,
26932693
expected_failure
26942694
} = args;
26952695

@@ -2723,7 +2723,7 @@ pub fn do_pass_along_path<'a, 'b, 'c>(args: PassAlongPathArgs) -> Option<Event>
27232723
assert_eq!(our_payment_hash, *payment_hash);
27242724
assert_eq!(node.node.get_our_node_id(), receiver_node_id.unwrap());
27252725
assert!(onion_fields.is_some());
2726-
assert_eq!(onion_fields.as_ref().unwrap().custom_tlvs, custom_tlvs);
2726+
assert_eq!(onion_fields.as_ref().unwrap().sender_custom_tlvs, sender_custom_tlvs);
27272727
assert_eq!(onion_fields.as_ref().unwrap().payment_metadata, payment_metadata);
27282728
match &purpose {
27292729
PaymentPurpose::Bolt11InvoicePayment { payment_preimage, payment_secret, .. } => {
@@ -2842,7 +2842,7 @@ pub struct ClaimAlongRouteArgs<'a, 'b, 'c, 'd> {
28422842
pub expected_min_htlc_overpay: Vec<u32>,
28432843
pub skip_last: bool,
28442844
pub payment_preimage: PaymentPreimage,
2845-
pub custom_tlvs: Vec<(u64, Vec<u8>)>,
2845+
pub sender_custom_tlvs: Vec<(u64, Vec<u8>)>,
28462846
// Allow forwarding nodes to have taken 1 msat more fee than expected based on the downstream
28472847
// fulfill amount.
28482848
//
@@ -2861,7 +2861,7 @@ impl<'a, 'b, 'c, 'd> ClaimAlongRouteArgs<'a, 'b, 'c, 'd> {
28612861
Self {
28622862
origin_node, expected_paths, expected_extra_fees: vec![0; expected_paths.len()],
28632863
expected_min_htlc_overpay: vec![0; expected_paths.len()], skip_last: false, payment_preimage,
2864-
allow_1_msat_fee_overpay: false, custom_tlvs: vec![],
2864+
allow_1_msat_fee_overpay: false, sender_custom_tlvs: vec![],
28652865
}
28662866
}
28672867
pub fn skip_last(mut self, skip_last: bool) -> Self {
@@ -2880,16 +2880,16 @@ impl<'a, 'b, 'c, 'd> ClaimAlongRouteArgs<'a, 'b, 'c, 'd> {
28802880
self.allow_1_msat_fee_overpay = true;
28812881
self
28822882
}
2883-
pub fn with_custom_tlvs(mut self, custom_tlvs: Vec<(u64, Vec<u8>)>) -> Self {
2884-
self.custom_tlvs = custom_tlvs;
2883+
pub fn with_sender_custom_tlvs(mut self, sender_custom_tlvs: Vec<(u64, Vec<u8>)>) -> Self {
2884+
self.sender_custom_tlvs = sender_custom_tlvs;
28852885
self
28862886
}
28872887
}
28882888

28892889
pub fn pass_claimed_payment_along_route(args: ClaimAlongRouteArgs) -> u64 {
28902890
let ClaimAlongRouteArgs {
28912891
origin_node, expected_paths, expected_extra_fees, expected_min_htlc_overpay, skip_last,
2892-
payment_preimage: our_payment_preimage, allow_1_msat_fee_overpay, custom_tlvs,
2892+
payment_preimage: our_payment_preimage, allow_1_msat_fee_overpay, sender_custom_tlvs,
28932893
} = args;
28942894
let claim_event = expected_paths[0].last().unwrap().node.get_and_clear_pending_events();
28952895
assert_eq!(claim_event.len(), 1);
@@ -2909,7 +2909,7 @@ pub fn pass_claimed_payment_along_route(args: ClaimAlongRouteArgs) -> u64 {
29092909
assert_eq!(preimage, our_payment_preimage);
29102910
assert_eq!(htlcs.len(), expected_paths.len()); // One per path.
29112911
assert_eq!(htlcs.iter().map(|h| h.value_msat).sum::<u64>(), amount_msat);
2912-
assert_eq!(onion_fields.as_ref().unwrap().custom_tlvs, custom_tlvs);
2912+
assert_eq!(onion_fields.as_ref().unwrap().sender_custom_tlvs, sender_custom_tlvs);
29132913
check_claimed_htlcs_match_route(origin_node, expected_paths, htlcs);
29142914
fwd_amt_msat = amount_msat;
29152915
},
@@ -2926,7 +2926,7 @@ pub fn pass_claimed_payment_along_route(args: ClaimAlongRouteArgs) -> u64 {
29262926
assert_eq!(&payment_hash.0, &Sha256::hash(&our_payment_preimage.0)[..]);
29272927
assert_eq!(htlcs.len(), expected_paths.len()); // One per path.
29282928
assert_eq!(htlcs.iter().map(|h| h.value_msat).sum::<u64>(), amount_msat);
2929-
assert_eq!(onion_fields.as_ref().unwrap().custom_tlvs, custom_tlvs);
2929+
assert_eq!(onion_fields.as_ref().unwrap().sender_custom_tlvs, sender_custom_tlvs);
29302930
check_claimed_htlcs_match_route(origin_node, expected_paths, htlcs);
29312931
fwd_amt_msat = amount_msat;
29322932
}

0 commit comments

Comments
 (0)