Skip to content

Commit c859d13

Browse files
committed
f pendingHtlcRouting
1 parent 79aef7f commit c859d13

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
@@ -130,25 +130,27 @@ pub enum PendingHTLCRouting {
130130
/// generated by us, but rather it's claiming to pay an invoice of ours.
131131
Receive {
132132
/// Information about the amount the sender intended to pay and (potential) proof that this
133-
/// is a payment for an invoice we generated, which is also used to associate MPP parts of
134-
/// a larger payment.
133+
/// is a payment for an invoice we generated. This proof of payment is is also used for
134+
/// linking MPP parts of a larger payment.
135135
payment_data: msgs::FinalOnionHopData,
136136
/// Additional data which we (allegedly) instructed the sender to include in the onion.
137137
///
138-
/// For HTLCs received by LDK, this will ultimately bubble back up as
138+
/// For HTLCs received by LDK, this will ultimately be exposed in
139+
/// [`Event::PaymentClaimable::onion_fields`] as
139140
/// [`RecipientOnionFields::payment_metadata`].
140141
payment_metadata: Option<Vec<u8>>,
141142
/// CLTV expiry of the received HTLC.
142143
///
143144
/// Used to track when we should expire pending HTLCs that go unclaimed.
144145
incoming_cltv_expiry: u32,
145146
/// If the onion had forwarding instructions to one of our phantom node SCIDs, this will
146-
/// provide the onion shared secret used to decrypt the second level of forwarding
147+
/// provide the onion shared secret used to decrypt the next level of forwarding
147148
/// instructions.
148149
phantom_shared_secret: Option<[u8; 32]>,
149150
/// Custom TLVs which were set by the sender.
150151
///
151-
/// For HTLCs received by LDK, these will ultimately bubble back up as
152+
/// For HTLCs received by LDK, this will ultimately be exposed in
153+
/// [`Event::PaymentClaimable::onion_fields`] as
152154
/// [`RecipientOnionFields::custom_tlvs`].
153155
custom_tlvs: Vec<(u64, Vec<u8>)>,
154156
},
@@ -160,7 +162,7 @@ pub enum PendingHTLCRouting {
160162
/// associate MPP parts of a larger payment.
161163
///
162164
/// This will only be filled in if receiving MPP keysend payments is enabled, and it being
163-
/// present may break downgrades to versions of LDK prior to 0.0.116.
165+
/// present will cause deserialization to fail on versions of LDK prior to 0.0.116.
164166
payment_data: Option<msgs::FinalOnionHopData>,
165167
/// Preimage for this onion payment. This preimage is provided by the sender and will be
166168
/// used to settle the spontaneous payment.
@@ -171,6 +173,7 @@ pub enum PendingHTLCRouting {
171173
/// [`RecipientOnionFields::payment_metadata`].
172174
payment_metadata: Option<Vec<u8>>,
173175
/// CLTV expiry of the received HTLC.
176+
///
174177
/// Used to track when we should expire pending HTLCs that go unclaimed.
175178
incoming_cltv_expiry: u32,
176179
/// Custom TLVs which were set by the sender.

0 commit comments

Comments
 (0)