[][src]Struct lightning::util::config::ChannelConfig

pub struct ChannelConfig {
    pub fee_proportional_millionths: u32,
    pub announced_channel: bool,
}

Options which apply on a per-channel basis and may change at runtime or based on negotiation with our counterparty.

Fields

fee_proportional_millionths: u32

Amount (in millionths of a satoshi) the channel will charge per transferred satoshi. This may be allowed to change at runtime in a later update, however doing so must result in update messages sent to notify all nodes of our updated relay fee.

announced_channel: bool

Set to announce the channel publicly and notify all nodes that they can route via this channel.

This should only be set to true for nodes which expect to be online reliably.

As the node which funds a channel picks this value this will only apply for new outbound channels unless ChannelHandshakeLimits::force_announced_channel_preferences is set.

This cannot be changed after the initial channel handshake.

Methods

impl ChannelConfig
[src]

pub fn new() -> Self
[src]

Provides sane defaults for most configurations (but with zero relay fees!).

Trait Implementations

impl Writeable for ChannelConfig
[src]

fn encode(&self) -> Vec<u8>
[src]

Writes self out to a Vec

fn encode_with_len(&self) -> Vec<u8>
[src]

Writes self out to a Vec

impl<R: Read> Readable<R> for ChannelConfig
[src]

impl Copy for ChannelConfig
[src]

impl Clone for ChannelConfig
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for ChannelConfig
[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From for T
[src]

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

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

type Owned = T

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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