[][src]Struct lnrpc::ChannelUpdate

pub struct ChannelUpdate {
    pub signature: Vec<u8>,
    pub chain_hash: Vec<u8>,
    pub chan_id: u64,
    pub timestamp: u32,
    pub message_flags: u32,
    pub channel_flags: u32,
    pub time_lock_delta: u32,
    pub htlc_minimum_msat: u64,
    pub base_fee: u32,
    pub fee_rate: u32,
    pub htlc_maximum_msat: u64,
    pub extra_opaque_data: Vec<u8>,
}

Fields

signature: Vec<u8>

The signature that validates the announced data and proves the ownership of node id.

chain_hash: Vec<u8>

The target chain that this channel was opened within. This value should be the genesis hash of the target chain. Along with the short channel ID, this uniquely identifies the channel globally in a blockchain.

chan_id: u64

The unique description of the funding transaction.

timestamp: u32

A timestamp that allows ordering in the case of multiple announcements. We should ignore the message if timestamp is not greater than the last-received.

message_flags: u32

The bitfield that describes whether optional fields are present in this update. Currently, the least-significant bit must be set to 1 if the optional field MaxHtlc is present.

channel_flags: u32

The bitfield that describes additional meta-data concerning how the update is to be interpreted. Currently, the least-significant bit must be set to 0 if the creating node corresponds to the first node in the previously sent channel announcement and 1 otherwise. If the second bit is set, then the channel is set to be disabled.

time_lock_delta: u32

The minimum number of blocks this node requires to be added to the expiry of HTLCs. This is a security parameter determined by the node operator. This value represents the required gap between the time locks of the incoming and outgoing HTLC's set to this node.

htlc_minimum_msat: u64

The minimum HTLC value which will be accepted.

base_fee: u32

The base fee that must be used for incoming HTLC's to this particular channel. This value will be tacked onto the required for a payment independent of the size of the payment.

fee_rate: u32

The fee rate that will be charged per millionth of a satoshi.

htlc_maximum_msat: u64

The maximum HTLC value which will be accepted.

extra_opaque_data: Vec<u8>

The set of data that was appended to this message, some of which we may not actually know how to iterate or parse. By holding onto this data, we ensure that we're able to properly validate the set of signatures that cover these new fields, and ensure we're able to make upgrades to the network in a forwards compatible manner.

Trait Implementations

impl Clone for ChannelUpdate[src]

impl Debug for ChannelUpdate[src]

impl Default for ChannelUpdate[src]

impl Message for ChannelUpdate[src]

impl PartialEq<ChannelUpdate> for ChannelUpdate[src]

impl StructuralPartialEq for ChannelUpdate[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]