pub struct ClaimedHTLC {
pub channel_id: ChannelId,
pub user_channel_id: u128,
pub cltv_expiry: u32,
pub value_msat: u64,
pub counterparty_skimmed_fee_msat: u64,
}Expand description
Information about an HTLC that is part of a payment that can be claimed.
Fields§
§channel_id: ChannelIdThe channel_id of the channel over which the HTLC was received.
user_channel_id: u128The user_channel_id of the channel over which the HTLC was received. This is the value
passed in to ChannelManager::create_channel for outbound channels, or to
ChannelManager::accept_inbound_channel for inbound channels if
UserConfig::manually_accept_inbound_channels config flag is set to true. Otherwise
user_channel_id will be randomized for an inbound channel.
This field will be zero for a payment that was serialized prior to LDK version 0.0.117. (This should only happen in the case that a payment was claimable prior to LDK version 0.0.117, but was not actually claimed until after upgrading.)
cltv_expiry: u32The block height at which this HTLC expires.
value_msat: u64The amount (in msats) of this part of an MPP.
counterparty_skimmed_fee_msat: u64The extra fee our counterparty skimmed off the top of this HTLC, if any.
This value will always be 0 for ClaimedHTLCs serialized with LDK versions prior to
0.0.119.
Trait Implementations§
Source§impl Clone for ClaimedHTLC
impl Clone for ClaimedHTLC
Source§fn clone(&self) -> ClaimedHTLC
fn clone(&self) -> ClaimedHTLC
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more