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