@@ -247,9 +247,14 @@ pub struct InboundHTLCDetails {
247
247
/// The payment hash.
248
248
pub payment_hash: PaymentHash,
249
249
/// The state of the HTLC in the state machine.
250
+ ///
250
251
/// Determines on which commitment transactions the HTLC is included and what message the HTLC is
251
252
/// waiting for to advance to the next state.
253
+ ///
252
254
/// See [`InboundHTLCStateDetails`] for information on the specific states.
255
+ ///
256
+ /// LDK will always fill this field in, but when downgrading to prior versions of LDK, new
257
+ /// states may result in `None` here.
253
258
pub state: Option<InboundHTLCStateDetails>,
254
259
/// Whether the HTLC has an output below the local dust limit. If so, the output will be trimmed
255
260
/// from the local commitment transaction and added to the commitment transaction fee.
@@ -428,9 +433,14 @@ pub struct OutboundHTLCDetails {
428
433
/// The payment hash.
429
434
pub payment_hash: PaymentHash,
430
435
/// The state of the HTLC in the state machine.
436
+ ///
431
437
/// Determines on which commitment transactions the HTLC is included and what message the HTLC is
432
438
/// waiting for to advance to the next state.
439
+ ///
433
440
/// See [`OutboundHTLCStateDetails`] for information on the specific states.
441
+ ///
442
+ /// LDK will always fill this field in, but when downgrading to prior versions of LDK, new
443
+ /// states may result in `None` here.
434
444
pub state: Option<OutboundHTLCStateDetails>,
435
445
/// The extra fee being skimmed off the top of this HTLC.
436
446
pub skimmed_fee_msat: Option<u64>,
0 commit comments