Skip to content

Commit 95b4326

Browse files
committed
Rename custom_tlvs -> sender_custom_tlvs
1 parent dd6ecb1 commit 95b4326

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
@@ -703,15 +703,15 @@ pub enum Event {
703703
/// [`ChannelManager::fail_htlc_backwards`] or [`ChannelManager::fail_htlc_backwards_with_reason`]
704704
/// to free up resources for this HTLC and avoid network congestion.
705705
///
706-
/// If [`Event::PaymentClaimable::onion_fields`] is `Some`, and includes custom TLVs with even type
706+
/// If [`Event::PaymentClaimable::onion_fields`] is `Some`, and includes sender custom TLVs with even type
707707
/// numbers, you should use [`ChannelManager::fail_htlc_backwards_with_reason`] with
708708
/// [`FailureCode::InvalidOnionPayload`] if you fail to understand and handle the contents, or
709-
/// [`ChannelManager::claim_funds_with_known_custom_tlvs`] upon successful handling.
710-
/// If you don't intend to check for custom TLVs, you can simply use
711-
/// [`ChannelManager::claim_funds`], which will automatically fail back even custom TLVs.
709+
/// [`ChannelManager::claim_funds_with_known_sender_custom_tlvs`] upon successful handling.
710+
/// If you don't intend to check for sender custom TLVs, you can simply use
711+
/// [`ChannelManager::claim_funds`], which will automatically fail back even sender custom TLVs.
712712
///
713713
/// If you fail to call [`ChannelManager::claim_funds`],
714-
/// [`ChannelManager::claim_funds_with_known_custom_tlvs`],
714+
/// [`ChannelManager::claim_funds_with_known_sender_custom_tlvs`],
715715
/// [`ChannelManager::fail_htlc_backwards`], or
716716
/// [`ChannelManager::fail_htlc_backwards_with_reason`] within the HTLC's timeout, the HTLC will
717717
/// be automatically failed.
@@ -730,7 +730,7 @@ pub enum Event {
730730
/// returning `Err(ReplayEvent ())`) and will be persisted across restarts.
731731
///
732732
/// [`ChannelManager::claim_funds`]: crate::ln::channelmanager::ChannelManager::claim_funds
733-
/// [`ChannelManager::claim_funds_with_known_custom_tlvs`]: crate::ln::channelmanager::ChannelManager::claim_funds_with_known_custom_tlvs
733+
/// [`ChannelManager::claim_funds_with_known_sender_custom_tlvs`]: crate::ln::channelmanager::ChannelManager::claim_funds_with_known_sender_custom_tlvs
734734
/// [`FailureCode::InvalidOnionPayload`]: crate::ln::channelmanager::FailureCode::InvalidOnionPayload
735735
/// [`ChannelManager::fail_htlc_backwards`]: crate::ln::channelmanager::ChannelManager::fail_htlc_backwards
736736
/// [`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
@@ -1224,7 +1224,7 @@ fn conditionally_round_fwd_amt() {
12241224

12251225

12261226
#[test]
1227-
fn custom_tlvs_to_blinded_path() {
1227+
fn sender_custom_tlvs_to_blinded_path() {
12281228
let chanmon_cfgs = create_chanmon_cfgs(2);
12291229
let node_cfgs = create_node_cfgs(2, &chanmon_cfgs);
12301230
let node_chanmgrs = create_node_chanmgrs(2, &node_cfgs, &[None, None]);
@@ -1256,7 +1256,7 @@ fn custom_tlvs_to_blinded_path() {
12561256
);
12571257

12581258
let recipient_onion_fields = RecipientOnionFields::spontaneous_empty()
1259-
.with_custom_tlvs(vec![((1 << 16) + 1, vec![42, 42])])
1259+
.with_sender_custom_tlvs(vec![((1 << 16) + 1, vec![42, 42])])
12601260
.unwrap();
12611261
nodes[0].node.send_payment(payment_hash, recipient_onion_fields.clone(),
12621262
PaymentId(payment_hash.0), route_params, Retry::Attempts(0)).unwrap();
@@ -1269,11 +1269,11 @@ fn custom_tlvs_to_blinded_path() {
12691269
let path = &[&nodes[1]];
12701270
let args = PassAlongPathArgs::new(&nodes[0], path, amt_msat, payment_hash, ev)
12711271
.with_payment_secret(payment_secret)
1272-
.with_custom_tlvs(recipient_onion_fields.custom_tlvs.clone());
1272+
.with_sender_custom_tlvs(recipient_onion_fields.sender_custom_tlvs.clone());
12731273
do_pass_along_path(args);
12741274
claim_payment_along_route(
12751275
ClaimAlongRouteArgs::new(&nodes[0], &[&[&nodes[1]]], payment_preimage)
1276-
.with_custom_tlvs(recipient_onion_fields.custom_tlvs.clone())
1276+
.with_sender_custom_tlvs(recipient_onion_fields.sender_custom_tlvs.clone())
12771277
);
12781278
}
12791279

lightning/src/ln/channelmanager.rs

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -198,12 +198,12 @@ pub enum PendingHTLCRouting {
198198
/// provide the onion shared secret used to decrypt the next level of forwarding
199199
/// instructions.
200200
phantom_shared_secret: Option<[u8; 32]>,
201-
/// Custom TLVs which were set by the sender.
201+
/// Sender custom TLVs which were set by the sender.
202202
///
203203
/// For HTLCs received by LDK, this will ultimately be exposed in
204204
/// [`Event::PaymentClaimable::onion_fields`] as
205-
/// [`RecipientOnionFields::custom_tlvs`].
206-
custom_tlvs: Vec<(u64, Vec<u8>)>,
205+
/// [`RecipientOnionFields::sender_custom_tlvs`].
206+
sender_custom_tlvs: Vec<(u64, Vec<u8>)>,
207207
/// Set if this HTLC is the final hop in a multi-hop blinded path.
208208
requires_blinded_error: bool,
209209
},
@@ -229,11 +229,11 @@ pub enum PendingHTLCRouting {
229229
///
230230
/// Used to track when we should expire pending HTLCs that go unclaimed.
231231
incoming_cltv_expiry: u32,
232-
/// Custom TLVs which were set by the sender.
232+
/// Sender custom TLVs which were set by the sender.
233233
///
234234
/// For HTLCs received by LDK, these will ultimately bubble back up as
235-
/// [`RecipientOnionFields::custom_tlvs`].
236-
custom_tlvs: Vec<(u64, Vec<u8>)>,
235+
/// [`RecipientOnionFields::sender_custom_tlvs`].
236+
sender_custom_tlvs: Vec<(u64, Vec<u8>)>,
237237
/// Set if this HTLC is the final hop in a multi-hop blinded path.
238238
requires_blinded_error: bool,
239239
/// Set if we are receiving a keysend to a blinded path, meaning we created the
@@ -935,17 +935,17 @@ struct ClaimablePayments {
935935
impl ClaimablePayments {
936936
/// Moves a payment from [`Self::claimable_payments`] to [`Self::pending_claiming_payments`].
937937
///
938-
/// If `custom_tlvs_known` is false and custom even TLVs are set by the sender, the set of
938+
/// If `sender_custom_tlvs_known` is false and custom even TLVs are set by the sender, the set of
939939
/// pending HTLCs will be returned in the `Err` variant of this method. They MUST then be
940940
/// failed by the caller as they will not be in either [`Self::claimable_payments`] or
941941
/// [`Self::pending_claiming_payments`].
942942
///
943-
/// If `custom_tlvs_known` is true, and a matching payment is found, it will always be moved.
943+
/// If `sender_custom_tlvs_known` is true, and a matching payment is found, it will always be moved.
944944
///
945945
/// If no payment is found, `Err(Vec::new())` is returned.
946946
fn begin_claiming_payment<L: Deref, S: Deref>(
947947
&mut self, payment_hash: PaymentHash, node_signer: &S, logger: &L,
948-
inbound_payment_id_secret: &[u8; 32], custom_tlvs_known: bool,
948+
inbound_payment_id_secret: &[u8; 32], sender_custom_tlvs_known: bool,
949949
) -> Result<(Vec<ClaimableHTLC>, ClaimingPayment), Vec<ClaimableHTLC>>
950950
where L::Target: Logger, S::Target: NodeSigner,
951951
{
@@ -962,10 +962,10 @@ impl ClaimablePayments {
962962
}
963963
}
964964

965-
if let Some(RecipientOnionFields { custom_tlvs, .. }) = &payment.onion_fields {
966-
if !custom_tlvs_known && custom_tlvs.iter().any(|(typ, _)| typ % 2 == 0) {
965+
if let Some(RecipientOnionFields { sender_custom_tlvs, .. }) = &payment.onion_fields {
966+
if !sender_custom_tlvs_known && sender_custom_tlvs.iter().any(|(typ, _)| typ % 2 == 0) {
967967
log_info!(logger, "Rejecting payment with payment hash {} as we cannot accept payment with unknown even TLVs: {}",
968-
&payment_hash, log_iter!(custom_tlvs.iter().map(|(typ, _)| typ).filter(|typ| *typ % 2 == 0)));
968+
&payment_hash, log_iter!(sender_custom_tlvs.iter().map(|(typ, _)| typ).filter(|typ| *typ % 2 == 0)));
969969
return Err(payment.htlcs);
970970
}
971971
}
@@ -6038,25 +6038,25 @@ where
60386038
) = match routing {
60396039
PendingHTLCRouting::Receive {
60406040
payment_data, payment_metadata, payment_context,
6041-
incoming_cltv_expiry, phantom_shared_secret, custom_tlvs,
6041+
incoming_cltv_expiry, phantom_shared_secret, sender_custom_tlvs,
60426042
requires_blinded_error: _
60436043
} => {
60446044
let _legacy_hop_data = Some(payment_data.clone());
60456045
let onion_fields = RecipientOnionFields { payment_secret: Some(payment_data.payment_secret),
6046-
payment_metadata, custom_tlvs };
6046+
payment_metadata, sender_custom_tlvs };
60476047
(incoming_cltv_expiry, OnionPayload::Invoice { _legacy_hop_data },
60486048
Some(payment_data), payment_context, phantom_shared_secret, onion_fields,
60496049
true)
60506050
},
60516051
PendingHTLCRouting::ReceiveKeysend {
60526052
payment_data, payment_preimage, payment_metadata,
6053-
incoming_cltv_expiry, custom_tlvs, requires_blinded_error: _,
6053+
incoming_cltv_expiry, sender_custom_tlvs, requires_blinded_error: _,
60546054
has_recipient_created_payment_secret,
60556055
} => {
60566056
let onion_fields = RecipientOnionFields {
60576057
payment_secret: payment_data.as_ref().map(|data| data.payment_secret),
60586058
payment_metadata,
6059-
custom_tlvs,
6059+
sender_custom_tlvs,
60606060
};
60616061
(incoming_cltv_expiry, OnionPayload::Spontaneous(payment_preimage),
60626062
payment_data, None, None, onion_fields, has_recipient_created_payment_secret)
@@ -6873,22 +6873,22 @@ where
68736873
/// event matches your expectation. If you fail to do so and call this method, you may provide
68746874
/// the sender "proof-of-payment" when they did not fulfill the full expected payment.
68756875
///
6876-
/// This function will fail the payment if it has custom TLVs with even type numbers, as we
6877-
/// will assume they are unknown. If you intend to accept even custom TLVs, you should use
6878-
/// [`claim_funds_with_known_custom_tlvs`].
6876+
/// This function will fail the payment if it has sender custom TLVs with even type numbers, as we
6877+
/// will assume they are unknown. If you intend to accept even sender custom TLVs, you should use
6878+
/// [`claim_funds_with_known_sender_custom_tlvs`].
68796879
///
68806880
/// [`Event::PaymentClaimable`]: crate::events::Event::PaymentClaimable
68816881
/// [`Event::PaymentClaimable::claim_deadline`]: crate::events::Event::PaymentClaimable::claim_deadline
68826882
/// [`Event::PaymentClaimed`]: crate::events::Event::PaymentClaimed
68836883
/// [`process_pending_events`]: EventsProvider::process_pending_events
68846884
/// [`create_inbound_payment`]: Self::create_inbound_payment
68856885
/// [`create_inbound_payment_for_hash`]: Self::create_inbound_payment_for_hash
6886-
/// [`claim_funds_with_known_custom_tlvs`]: Self::claim_funds_with_known_custom_tlvs
6886+
/// [`claim_funds_with_known_sender_custom_tlvs`]: Self::claim_funds_with_known_sender_custom_tlvs
68876887
pub fn claim_funds(&self, payment_preimage: PaymentPreimage) {
68886888
self.claim_payment_internal(payment_preimage, false);
68896889
}
68906890

6891-
/// This is a variant of [`claim_funds`] that allows accepting a payment with custom TLVs with
6891+
/// This is a variant of [`claim_funds`] that allows accepting a payment with sender custom TLVs with
68926892
/// even type numbers.
68936893
///
68946894
/// # Note
@@ -6897,19 +6897,19 @@ where
68976897
/// claim, otherwise you may unintentionally agree to some protocol you do not understand.
68986898
///
68996899
/// [`claim_funds`]: Self::claim_funds
6900-
pub fn claim_funds_with_known_custom_tlvs(&self, payment_preimage: PaymentPreimage) {
6900+
pub fn claim_funds_with_known_sender_custom_tlvs(&self, payment_preimage: PaymentPreimage) {
69016901
self.claim_payment_internal(payment_preimage, true);
69026902
}
69036903

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

69076907
let _persistence_guard = PersistenceNotifierGuard::notify_on_drop(self);
69086908

69096909
let (sources, claiming_payment) = {
69106910
let res = self.claimable_payments.lock().unwrap().begin_claiming_payment(
69116911
payment_hash, &self.node_signer, &self.logger, &self.inbound_payment_id_secret,
6912-
custom_tlvs_known,
6912+
sender_custom_tlvs_known,
69136913
);
69146914

69156915
match res {
@@ -12450,7 +12450,7 @@ impl_writeable_tlv_based_enum!(PendingHTLCRouting,
1245012450
(1, phantom_shared_secret, option),
1245112451
(2, incoming_cltv_expiry, required),
1245212452
(3, payment_metadata, option),
12453-
(5, custom_tlvs, optional_vec),
12453+
(5, sender_custom_tlvs, optional_vec),
1245412454
(7, requires_blinded_error, (default_value, false)),
1245512455
(9, payment_context, option),
1245612456
},
@@ -12460,7 +12460,7 @@ impl_writeable_tlv_based_enum!(PendingHTLCRouting,
1246012460
(2, incoming_cltv_expiry, required),
1246112461
(3, payment_metadata, option),
1246212462
(4, payment_data, option), // Added in 0.0.116
12463-
(5, custom_tlvs, optional_vec),
12463+
(5, sender_custom_tlvs, optional_vec),
1246412464
(7, has_recipient_created_payment_secret, (default_value, false)),
1246512465
},
1246612466
);
@@ -15469,7 +15469,7 @@ mod tests {
1546915469
payment_data: Some(msgs::FinalOnionHopData {
1547015470
payment_secret: PaymentSecret([0; 32]), total_msat: sender_intended_amt_msat,
1547115471
}),
15472-
custom_tlvs: Vec::new(),
15472+
sender_custom_tlvs: Vec::new(),
1547315473
};
1547415474
// Check that if the amount we received + the penultimate hop extra fee is less than the sender
1547515475
// intended amount, we fail the payment.
@@ -15491,7 +15491,7 @@ mod tests {
1549115491
payment_data: Some(msgs::FinalOnionHopData {
1549215492
payment_secret: PaymentSecret([0; 32]), total_msat: sender_intended_amt_msat,
1549315493
}),
15494-
custom_tlvs: Vec::new(),
15494+
sender_custom_tlvs: Vec::new(),
1549515495
};
1549615496
let current_height: u32 = node[0].node.best_block.read().unwrap().height;
1549715497
assert!(create_recv_pending_htlc_info(hop_data, [0; 32], PaymentHash([0; 32]),
@@ -15515,7 +15515,7 @@ mod tests {
1551515515
payment_data: Some(msgs::FinalOnionHopData {
1551615516
payment_secret: PaymentSecret([0; 32]), total_msat: 100,
1551715517
}),
15518-
custom_tlvs: Vec::new(),
15518+
sender_custom_tlvs: Vec::new(),
1551915519
}, [0; 32], PaymentHash([0; 32]), 100, 23, None, true, None, current_height);
1552015520

1552115521
// 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
@@ -2645,7 +2645,7 @@ pub struct PassAlongPathArgs<'a, 'b, 'c, 'd> {
26452645
pub clear_recipient_events: bool,
26462646
pub expected_preimage: Option<PaymentPreimage>,
26472647
pub is_probe: bool,
2648-
pub custom_tlvs: Vec<(u64, Vec<u8>)>,
2648+
pub sender_custom_tlvs: Vec<(u64, Vec<u8>)>,
26492649
pub payment_metadata: Option<Vec<u8>>,
26502650
pub expected_failure: Option<HTLCDestination>,
26512651
}
@@ -2658,7 +2658,7 @@ impl<'a, 'b, 'c, 'd> PassAlongPathArgs<'a, 'b, 'c, 'd> {
26582658
Self {
26592659
origin_node, expected_path, recv_value, payment_hash, payment_secret: None, event,
26602660
payment_claimable_expected: true, clear_recipient_events: true, expected_preimage: None,
2661-
is_probe: false, custom_tlvs: Vec::new(), payment_metadata: None, expected_failure: None,
2661+
is_probe: false, sender_custom_tlvs: Vec::new(), payment_metadata: None, expected_failure: None,
26622662
}
26632663
}
26642664
pub fn without_clearing_recipient_events(mut self) -> Self {
@@ -2682,8 +2682,8 @@ impl<'a, 'b, 'c, 'd> PassAlongPathArgs<'a, 'b, 'c, 'd> {
26822682
self.expected_preimage = Some(payment_preimage);
26832683
self
26842684
}
2685-
pub fn with_custom_tlvs(mut self, custom_tlvs: Vec<(u64, Vec<u8>)>) -> Self {
2686-
self.custom_tlvs = custom_tlvs;
2685+
pub fn with_sender_custom_tlvs(mut self, sender_custom_tlvs: Vec<(u64, Vec<u8>)>) -> Self {
2686+
self.sender_custom_tlvs = sender_custom_tlvs;
26872687
self
26882688
}
26892689
pub fn with_payment_metadata(mut self, payment_metadata: Vec<u8>) -> Self {
@@ -2701,7 +2701,7 @@ pub fn do_pass_along_path<'a, 'b, 'c>(args: PassAlongPathArgs) -> Option<Event>
27012701
let PassAlongPathArgs {
27022702
origin_node, expected_path, recv_value, payment_hash: our_payment_hash,
27032703
payment_secret: our_payment_secret, event: ev, payment_claimable_expected,
2704-
clear_recipient_events, expected_preimage, is_probe, custom_tlvs, payment_metadata,
2704+
clear_recipient_events, expected_preimage, is_probe, sender_custom_tlvs, payment_metadata,
27052705
expected_failure
27062706
} = args;
27072707

@@ -2735,7 +2735,7 @@ pub fn do_pass_along_path<'a, 'b, 'c>(args: PassAlongPathArgs) -> Option<Event>
27352735
assert_eq!(our_payment_hash, *payment_hash);
27362736
assert_eq!(node.node.get_our_node_id(), receiver_node_id.unwrap());
27372737
assert!(onion_fields.is_some());
2738-
assert_eq!(onion_fields.as_ref().unwrap().custom_tlvs, custom_tlvs);
2738+
assert_eq!(onion_fields.as_ref().unwrap().sender_custom_tlvs, sender_custom_tlvs);
27392739
assert_eq!(onion_fields.as_ref().unwrap().payment_metadata, payment_metadata);
27402740
match &purpose {
27412741
PaymentPurpose::Bolt11InvoicePayment { payment_preimage, payment_secret, .. } => {
@@ -2854,7 +2854,7 @@ pub struct ClaimAlongRouteArgs<'a, 'b, 'c, 'd> {
28542854
pub expected_min_htlc_overpay: Vec<u32>,
28552855
pub skip_last: bool,
28562856
pub payment_preimage: PaymentPreimage,
2857-
pub custom_tlvs: Vec<(u64, Vec<u8>)>,
2857+
pub sender_custom_tlvs: Vec<(u64, Vec<u8>)>,
28582858
// Allow forwarding nodes to have taken 1 msat more fee than expected based on the downstream
28592859
// fulfill amount.
28602860
//
@@ -2873,7 +2873,7 @@ impl<'a, 'b, 'c, 'd> ClaimAlongRouteArgs<'a, 'b, 'c, 'd> {
28732873
Self {
28742874
origin_node, expected_paths, expected_extra_fees: vec![0; expected_paths.len()],
28752875
expected_min_htlc_overpay: vec![0; expected_paths.len()], skip_last: false, payment_preimage,
2876-
allow_1_msat_fee_overpay: false, custom_tlvs: vec![],
2876+
allow_1_msat_fee_overpay: false, sender_custom_tlvs: vec![],
28772877
}
28782878
}
28792879
pub fn skip_last(mut self, skip_last: bool) -> Self {
@@ -2892,16 +2892,16 @@ impl<'a, 'b, 'c, 'd> ClaimAlongRouteArgs<'a, 'b, 'c, 'd> {
28922892
self.allow_1_msat_fee_overpay = true;
28932893
self
28942894
}
2895-
pub fn with_custom_tlvs(mut self, custom_tlvs: Vec<(u64, Vec<u8>)>) -> Self {
2896-
self.custom_tlvs = custom_tlvs;
2895+
pub fn with_sender_custom_tlvs(mut self, sender_custom_tlvs: Vec<(u64, Vec<u8>)>) -> Self {
2896+
self.sender_custom_tlvs = sender_custom_tlvs;
28972897
self
28982898
}
28992899
}
29002900

29012901
pub fn pass_claimed_payment_along_route(args: ClaimAlongRouteArgs) -> u64 {
29022902
let ClaimAlongRouteArgs {
29032903
origin_node, expected_paths, expected_extra_fees, expected_min_htlc_overpay, skip_last,
2904-
payment_preimage: our_payment_preimage, allow_1_msat_fee_overpay, custom_tlvs,
2904+
payment_preimage: our_payment_preimage, allow_1_msat_fee_overpay, sender_custom_tlvs,
29052905
} = args;
29062906
let claim_event = expected_paths[0].last().unwrap().node.get_and_clear_pending_events();
29072907
assert_eq!(claim_event.len(), 1);
@@ -2921,7 +2921,7 @@ pub fn pass_claimed_payment_along_route(args: ClaimAlongRouteArgs) -> u64 {
29212921
assert_eq!(preimage, our_payment_preimage);
29222922
assert_eq!(htlcs.len(), expected_paths.len()); // One per path.
29232923
assert_eq!(htlcs.iter().map(|h| h.value_msat).sum::<u64>(), amount_msat);
2924-
assert_eq!(onion_fields.as_ref().unwrap().custom_tlvs, custom_tlvs);
2924+
assert_eq!(onion_fields.as_ref().unwrap().sender_custom_tlvs, sender_custom_tlvs);
29252925
check_claimed_htlcs_match_route(origin_node, expected_paths, htlcs);
29262926
fwd_amt_msat = amount_msat;
29272927
},
@@ -2938,7 +2938,7 @@ pub fn pass_claimed_payment_along_route(args: ClaimAlongRouteArgs) -> u64 {
29382938
assert_eq!(&payment_hash.0, &Sha256::hash(&our_payment_preimage.0)[..]);
29392939
assert_eq!(htlcs.len(), expected_paths.len()); // One per path.
29402940
assert_eq!(htlcs.iter().map(|h| h.value_msat).sum::<u64>(), amount_msat);
2941-
assert_eq!(onion_fields.as_ref().unwrap().custom_tlvs, custom_tlvs);
2941+
assert_eq!(onion_fields.as_ref().unwrap().sender_custom_tlvs, sender_custom_tlvs);
29422942
check_claimed_htlcs_match_route(origin_node, expected_paths, htlcs);
29432943
fwd_amt_msat = amount_msat;
29442944
}

0 commit comments

Comments
 (0)