Struct lightning::ln::msgs::UnsignedChannelUpdate
source · pub struct UnsignedChannelUpdate {
pub chain_hash: BlockHash,
pub short_channel_id: u64,
pub timestamp: u32,
pub flags: u8,
pub cltv_expiry_delta: u16,
pub htlc_minimum_msat: u64,
pub htlc_maximum_msat: u64,
pub fee_base_msat: u32,
pub fee_proportional_millionths: u32,
pub excess_data: Vec<u8>,
}
Expand description
The unsigned part of a channel_update
message.
Fields§
§chain_hash: BlockHash
The genesis hash of the blockchain where the channel is to be opened
short_channel_id: u64
The short channel ID
timestamp: u32
A strictly monotonic announcement counter, with gaps allowed, specific to this channel
flags: u8
Channel flags
cltv_expiry_delta: u16
The number of blocks such that if:
incoming_htlc.cltv_expiry < outgoing_htlc.cltv_expiry + cltv_expiry_delta
then we need to fail the HTLC backwards. When forwarding an HTLC, cltv_expiry_delta
determines
the outgoing HTLC’s minimum cltv_expiry
value – so, if an incoming HTLC comes in with a
cltv_expiry
of 100000, and the node we’re forwarding to has a cltv_expiry_delta
value of 10,
then we’ll check that the outgoing HTLC’s cltv_expiry
value is at least 100010 before
forwarding. Note that the HTLC sender is the one who originally sets this value when
constructing the route.
htlc_minimum_msat: u64
The minimum HTLC size incoming to sender, in milli-satoshi
htlc_maximum_msat: u64
The maximum HTLC value incoming to sender, in milli-satoshi.
This used to be optional.
fee_base_msat: u32
The base HTLC fee charged by sender, in milli-satoshi
fee_proportional_millionths: u32
The amount to fee multiplier, in micro-satoshi
excess_data: Vec<u8>
Excess data which was signed as a part of the message which we do not (yet) understand how to decode.
This is stored to ensure forward-compatibility as new fields are added to the lightning gossip protocol.
Trait Implementations§
source§impl Clone for UnsignedChannelUpdate
impl Clone for UnsignedChannelUpdate
source§fn clone(&self) -> UnsignedChannelUpdate
fn clone(&self) -> UnsignedChannelUpdate
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UnsignedChannelUpdate
impl Debug for UnsignedChannelUpdate
source§impl PartialEq<UnsignedChannelUpdate> for UnsignedChannelUpdate
impl PartialEq<UnsignedChannelUpdate> for UnsignedChannelUpdate
source§fn eq(&self, other: &UnsignedChannelUpdate) -> bool
fn eq(&self, other: &UnsignedChannelUpdate) -> bool
self
and other
values to be equal, and is used
by ==
.