mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-25 23:30:59 +01:00
Note when new HTLC state can be None
This commit is contained in:
parent
8296515871
commit
d1c2e143fe
1 changed files with 10 additions and 0 deletions
|
@ -247,9 +247,14 @@ pub struct InboundHTLCDetails {
|
||||||
/// The payment hash.
|
/// The payment hash.
|
||||||
pub payment_hash: PaymentHash,
|
pub payment_hash: PaymentHash,
|
||||||
/// The state of the HTLC in the state machine.
|
/// The state of the HTLC in the state machine.
|
||||||
|
///
|
||||||
/// Determines on which commitment transactions the HTLC is included and what message the HTLC is
|
/// Determines on which commitment transactions the HTLC is included and what message the HTLC is
|
||||||
/// waiting for to advance to the next state.
|
/// waiting for to advance to the next state.
|
||||||
|
///
|
||||||
/// See [`InboundHTLCStateDetails`] for information on the specific states.
|
/// See [`InboundHTLCStateDetails`] for information on the specific states.
|
||||||
|
///
|
||||||
|
/// LDK will always fill this field in, but when downgrading to prior versions of LDK, new
|
||||||
|
/// states may result in `None` here.
|
||||||
pub state: Option<InboundHTLCStateDetails>,
|
pub state: Option<InboundHTLCStateDetails>,
|
||||||
/// Whether the HTLC has an output below the local dust limit. If so, the output will be trimmed
|
/// Whether the HTLC has an output below the local dust limit. If so, the output will be trimmed
|
||||||
/// from the local commitment transaction and added to the commitment transaction fee.
|
/// from the local commitment transaction and added to the commitment transaction fee.
|
||||||
|
@ -428,9 +433,14 @@ pub struct OutboundHTLCDetails {
|
||||||
/// The payment hash.
|
/// The payment hash.
|
||||||
pub payment_hash: PaymentHash,
|
pub payment_hash: PaymentHash,
|
||||||
/// The state of the HTLC in the state machine.
|
/// The state of the HTLC in the state machine.
|
||||||
|
///
|
||||||
/// Determines on which commitment transactions the HTLC is included and what message the HTLC is
|
/// Determines on which commitment transactions the HTLC is included and what message the HTLC is
|
||||||
/// waiting for to advance to the next state.
|
/// waiting for to advance to the next state.
|
||||||
|
///
|
||||||
/// See [`OutboundHTLCStateDetails`] for information on the specific states.
|
/// See [`OutboundHTLCStateDetails`] for information on the specific states.
|
||||||
|
///
|
||||||
|
/// LDK will always fill this field in, but when downgrading to prior versions of LDK, new
|
||||||
|
/// states may result in `None` here.
|
||||||
pub state: Option<OutboundHTLCStateDetails>,
|
pub state: Option<OutboundHTLCStateDetails>,
|
||||||
/// The extra fee being skimmed off the top of this HTLC.
|
/// The extra fee being skimmed off the top of this HTLC.
|
||||||
pub skimmed_fee_msat: Option<u64>,
|
pub skimmed_fee_msat: Option<u64>,
|
||||||
|
|
Loading…
Add table
Reference in a new issue