Skip to content

Commit 8fec215

Browse files
committed
f pendingHtlcRouting
1 parent 4ad2a76 commit 8fec215

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -132,25 +132,27 @@ pub enum PendingHTLCRouting {
132132
/// generated by us, but rather it's claiming to pay an invoice of ours.
133133
Receive {
134134
/// Information about the amount the sender intended to pay and (potential) proof that this
135-
/// is a payment for an invoice we generated, which is also used to associate MPP parts of
136-
/// a larger payment.
135+
/// is a payment for an invoice we generated. This proof of payment is is also used for
136+
/// linking MPP parts of a larger payment.
137137
payment_data: msgs::FinalOnionHopData,
138138
/// Additional data which we (allegedly) instructed the sender to include in the onion.
139139
///
140-
/// For HTLCs received by LDK, this will ultimately bubble back up as
140+
/// For HTLCs received by LDK, this will ultimately be exposed in
141+
/// [`Event::PaymentClaimable::onion_fields`] as
141142
/// [`RecipientOnionFields::payment_metadata`].
142143
payment_metadata: Option<Vec<u8>>,
143144
/// CLTV expiry of the received HTLC.
144145
///
145146
/// Used to track when we should expire pending HTLCs that go unclaimed.
146147
incoming_cltv_expiry: u32,
147148
/// If the onion had forwarding instructions to one of our phantom node SCIDs, this will
148-
/// provide the onion shared secret used to decrypt the second level of forwarding
149+
/// provide the onion shared secret used to decrypt the next level of forwarding
149150
/// instructions.
150151
phantom_shared_secret: Option<[u8; 32]>,
151152
/// Custom TLVs which were set by the sender.
152153
///
153-
/// For HTLCs received by LDK, these will ultimately bubble back up as
154+
/// For HTLCs received by LDK, this will ultimately be exposed in
155+
/// [`Event::PaymentClaimable::onion_fields`] as
154156
/// [`RecipientOnionFields::custom_tlvs`].
155157
custom_tlvs: Vec<(u64, Vec<u8>)>,
156158
},
@@ -162,7 +164,7 @@ pub enum PendingHTLCRouting {
162164
/// associate MPP parts of a larger payment.
163165
///
164166
/// This will only be filled in if receiving MPP keysend payments is enabled, and it being
165-
/// present may break downgrades to versions of LDK prior to 0.0.116.
167+
/// present will cause deserialization to fail on versions of LDK prior to 0.0.116.
166168
payment_data: Option<msgs::FinalOnionHopData>,
167169
/// Preimage for this onion payment. This preimage is provided by the sender and will be
168170
/// used to settle the spontaneous payment.
@@ -173,6 +175,7 @@ pub enum PendingHTLCRouting {
173175
/// [`RecipientOnionFields::payment_metadata`].
174176
payment_metadata: Option<Vec<u8>>,
175177
/// CLTV expiry of the received HTLC.
178+
///
176179
/// Used to track when we should expire pending HTLCs that go unclaimed.
177180
incoming_cltv_expiry: u32,
178181
/// Custom TLVs which were set by the sender.

0 commit comments

Comments
 (0)