Struct lightning::routing::gossip::ChannelUpdateInfo
source · pub struct ChannelUpdateInfo {
pub last_update: u32,
pub enabled: bool,
pub cltv_expiry_delta: u16,
pub htlc_minimum_msat: u64,
pub htlc_maximum_msat: u64,
pub fees: RoutingFees,
pub last_update_message: Option<ChannelUpdate>,
}
Expand description
Details about one direction of a channel as received within a ChannelUpdate
.
Fields§
§last_update: u32
When the last update to the channel direction was issued. Value is opaque, as set in the announcement.
enabled: bool
Whether the channel can be currently used for payments (in this one direction).
cltv_expiry_delta: u16
The difference in CLTV values that you must have when routing through this channel.
htlc_minimum_msat: u64
The minimum value, which must be relayed to the next hop via the channel
htlc_maximum_msat: u64
The maximum value which may be relayed to the next hop via the channel.
fees: RoutingFees
Fees charged when the channel is used for routing
last_update_message: Option<ChannelUpdate>
Most recent update for the channel received from the network Mostly redundant with the data we store in fields explicitly. Everything else is useful only for sending out for initial routing sync. Not stored if contains excess data to prevent DoS.
Trait Implementations§
source§impl Clone for ChannelUpdateInfo
impl Clone for ChannelUpdateInfo
source§fn clone(&self) -> ChannelUpdateInfo
fn clone(&self) -> ChannelUpdateInfo
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ChannelUpdateInfo
impl Debug for ChannelUpdateInfo
source§impl Display for ChannelUpdateInfo
impl Display for ChannelUpdateInfo
source§impl PartialEq<ChannelUpdateInfo> for ChannelUpdateInfo
impl PartialEq<ChannelUpdateInfo> for ChannelUpdateInfo
source§fn eq(&self, other: &ChannelUpdateInfo) -> bool
fn eq(&self, other: &ChannelUpdateInfo) -> bool
self
and other
values to be equal, and is used
by ==
.