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.
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.
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.
Provides sane defaults for most configurations (but with zero relay fees!).
Writes self out to the given Writer
Reads a Self in from the given Read
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static