@@ -121,7 +121,7 @@ pub enum PendingHTLCRouting {
121
121
},
122
122
/// An HTLC paid to an invoice (supposedly) generated by us.
123
123
/// At this point, we have not checked that the invoice being paid was actually generated by us,
124
- /// but rather its claiming to pay an invoice of ours.
124
+ /// but rather it's claiming to pay an invoice of ours.
125
125
Receive {
126
126
/// Payment secret and total msat received.
127
127
payment_data: msgs::FinalOnionHopData,
@@ -141,8 +141,8 @@ pub enum PendingHTLCRouting {
141
141
ReceiveKeysend {
142
142
/// This was added in 0.0.116 and will break deserialization on downgrades.
143
143
payment_data: Option<msgs::FinalOnionHopData>,
144
- /// Preimage for this onion payment. This preimage will be used in the invoice
145
- /// generated and immediately settled for the spontaneous payment.
144
+ /// Preimage for this onion payment. This preimage is provided by the sender and will be
145
+ /// used to settle the spontaneous payment.
146
146
payment_preimage: PaymentPreimage,
147
147
/// See [`RecipientOnionFields::payment_metadata`] for more info.
148
148
payment_metadata: Option<Vec<u8>>,
@@ -160,9 +160,9 @@ pub struct PendingHTLCInfo {
160
160
/// Further routing details based on whether the HTLC is being forwarded or received.
161
161
pub routing: PendingHTLCRouting,
162
162
/// Shared secret from the previous hop.
163
- /// Used to obfuscate any corresponding return packets back to the previous hop .
163
+ /// Used encrypt failure packets in the event that the HTLC needs to be failed backwards .
164
164
pub incoming_shared_secret: [u8; 32],
165
- /// Hash of the payment preimage. Used to cross- lock the payment across the hop .
165
+ /// Hash of the payment preimage, to lock the payment until the receiver releases the preimage .
166
166
pub payment_hash: PaymentHash,
167
167
/// Amount offered by this HTLC.
168
168
pub incoming_amt_msat: Option<u64>, // Added in 0.0.113
0 commit comments