pub struct ChannelUpdate {
pub signature: Option<EcdsaSignature>,
pub chain_hash: Hash256,
pub channel_outpoint: OutPoint,
pub timestamp: u64,
pub message_flags: ChannelUpdateMessageFlags,
pub channel_flags: ChannelUpdateChannelFlags,
pub tlc_expiry_delta: u64,
pub tlc_minimum_value: u128,
pub tlc_fee_proportional_millionths: u128,
}Expand description
Update to an existing channel’s routing parameters.
This message is broadcast to update routing information for a channel, such as fees, timelock requirements, or disabled status.
Fields§
§signature: Option<EcdsaSignature>Signature of the node that wants to update the channel information
chain_hash: Hash256The chain hash this channel belongs to
channel_outpoint: OutPointThe outpoint of the funding transaction
timestamp: u64Timestamp for this update
message_flags: ChannelUpdateMessageFlagsMessage flags (indicates which node this update is from)
channel_flags: ChannelUpdateChannelFlagsChannel flags (indicates if channel is disabled)
tlc_expiry_delta: u64TLC expiry delta in blocks
tlc_minimum_value: u128Minimum TLC value
tlc_fee_proportional_millionths: u128Fee proportional millionths
Implementations§
Source§impl ChannelUpdate
impl ChannelUpdate
Sourcepub fn is_update_of_node_1(&self) -> bool
pub fn is_update_of_node_1(&self) -> bool
Check if this update is from node 1.
Sourcepub fn is_update_of_node_2(&self) -> bool
pub fn is_update_of_node_2(&self) -> bool
Check if this update is from node 2.
Sourcepub fn is_disabled(&self) -> bool
pub fn is_disabled(&self) -> bool
Check if the channel is disabled.
Sourcepub fn message_to_sign(&self) -> [u8; 32]
pub fn message_to_sign(&self) -> [u8; 32]
Get the message bytes to sign (hash of unsigned molecule serialization).
Trait Implementations§
Source§impl Clone for ChannelUpdate
impl Clone for ChannelUpdate
Source§fn clone(&self) -> ChannelUpdate
fn clone(&self) -> ChannelUpdate
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChannelUpdate
impl Debug for ChannelUpdate
Source§impl<'de> Deserialize<'de> for ChannelUpdate
impl<'de> Deserialize<'de> for ChannelUpdate
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&ChannelUpdate> for ChannelUpdateInfo
impl From<&ChannelUpdate> for ChannelUpdateInfo
Source§fn from(update: &ChannelUpdate) -> Self
fn from(update: &ChannelUpdate) -> Self
Converts to this type from the input type.
Source§impl From<ChannelUpdate> for ChannelUpdate
impl From<ChannelUpdate> for ChannelUpdate
Source§fn from(channel_update: ChannelUpdate) -> Self
fn from(channel_update: ChannelUpdate) -> Self
Converts to this type from the input type.
Source§impl From<ChannelUpdate> for ChannelUpdateInfo
impl From<ChannelUpdate> for ChannelUpdateInfo
Source§fn from(update: ChannelUpdate) -> Self
fn from(update: ChannelUpdate) -> Self
Converts to this type from the input type.
Source§impl Hash for ChannelUpdate
impl Hash for ChannelUpdate
Source§impl PartialEq for ChannelUpdate
impl PartialEq for ChannelUpdate
Source§impl Serialize for ChannelUpdate
impl Serialize for ChannelUpdate
Source§impl TryFrom<ChannelUpdate> for ChannelUpdate
impl TryFrom<ChannelUpdate> for ChannelUpdate
impl Eq for ChannelUpdate
impl StructuralPartialEq for ChannelUpdate
Auto Trait Implementations§
impl !Freeze for ChannelUpdate
impl RefUnwindSafe for ChannelUpdate
impl Send for ChannelUpdate
impl Sync for ChannelUpdate
impl Unpin for ChannelUpdate
impl UnsafeUnpin for ChannelUpdate
impl UnwindSafe for ChannelUpdate
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more