@@ -132,25 +132,27 @@ pub enum PendingHTLCRouting {
132
132
/// generated by us, but rather it's claiming to pay an invoice of ours.
133
133
Receive {
134
134
/// 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.
137
137
payment_data: msgs::FinalOnionHopData,
138
138
/// Additional data which we (allegedly) instructed the sender to include in the onion.
139
139
///
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
141
142
/// [`RecipientOnionFields::payment_metadata`].
142
143
payment_metadata: Option<Vec<u8>>,
143
144
/// CLTV expiry of the received HTLC.
144
145
///
145
146
/// Used to track when we should expire pending HTLCs that go unclaimed.
146
147
incoming_cltv_expiry: u32,
147
148
/// 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
149
150
/// instructions.
150
151
phantom_shared_secret: Option<[u8; 32]>,
151
152
/// Custom TLVs which were set by the sender.
152
153
///
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
154
156
/// [`RecipientOnionFields::custom_tlvs`].
155
157
custom_tlvs: Vec<(u64, Vec<u8>)>,
156
158
},
@@ -162,7 +164,7 @@ pub enum PendingHTLCRouting {
162
164
/// associate MPP parts of a larger payment.
163
165
///
164
166
/// 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.
166
168
payment_data: Option<msgs::FinalOnionHopData>,
167
169
/// Preimage for this onion payment. This preimage is provided by the sender and will be
168
170
/// used to settle the spontaneous payment.
@@ -173,6 +175,7 @@ pub enum PendingHTLCRouting {
173
175
/// [`RecipientOnionFields::payment_metadata`].
174
176
payment_metadata: Option<Vec<u8>>,
175
177
/// CLTV expiry of the received HTLC.
178
+ ///
176
179
/// Used to track when we should expire pending HTLCs that go unclaimed.
177
180
incoming_cltv_expiry: u32,
178
181
/// Custom TLVs which were set by the sender.
0 commit comments