Struct lightning::events::ClaimedHTLC
source · 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: ChannelId
The channel_id
of the channel over which the HTLC was received.
user_channel_id: u128
The 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: u32
The block height at which this HTLC expires.
value_msat: u64
The amount (in msats) of this part of an MPP.
counterparty_skimmed_fee_msat: u64
The extra fee our counterparty skimmed off the top of this HTLC, if any.
This value will always be 0 for ClaimedHTLC
s 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 moresource§impl Debug for ClaimedHTLC
impl Debug for ClaimedHTLC
source§impl PartialEq for ClaimedHTLC
impl PartialEq for ClaimedHTLC
source§fn eq(&self, other: &ClaimedHTLC) -> bool
fn eq(&self, other: &ClaimedHTLC) -> bool
self
and other
values to be equal, and is used
by ==
.