pub struct ChannelConfig {
pub forwarding_fee_proportional_millionths: u32,
pub forwarding_fee_base_msat: u32,
pub cltv_expiry_delta: u16,
pub max_dust_htlc_exposure: MaxDustHTLCExposure,
pub force_close_avoidance_max_fee_satoshis: u64,
pub accept_underpaying_htlcs: bool,
}Expand description
Options which apply on a per-channel basis and may change at runtime or based on negotiation with our counterparty.
Fields§
§forwarding_fee_proportional_millionths: u32Amount (in millionths of a satoshi) charged per satoshi for payments forwarded outbound over the channel. 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.
Please refer to LdkChannelConfig for further details.
forwarding_fee_base_msat: u32Amount (in milli-satoshi) charged for payments forwarded outbound over the channel, in
excess of ChannelConfig::forwarding_fee_proportional_millionths.
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.
Please refer to LdkChannelConfig for further details.
cltv_expiry_delta: u16The difference in the CLTV value between incoming HTLCs and an outbound HTLC forwarded over the channel this config applies to.
Please refer to LdkChannelConfig for further details.
max_dust_htlc_exposure: MaxDustHTLCExposureLimit our total exposure to potential loss to on-chain fees on close, including in-flight HTLCs which are burned to fees as they are too small to claim on-chain and fees on commitment transaction(s) broadcasted by our counterparty in excess of our own fee estimate.
Please refer to LdkChannelConfig for further details.
force_close_avoidance_max_fee_satoshis: u64The additional fee we’re willing to pay to avoid waiting for the counterparty’s
to_self_delay to reclaim funds.
Please refer to LdkChannelConfig for further details.
accept_underpaying_htlcs: boolIf set, allows this channel’s counterparty to skim an additional fee off this node’s inbound HTLCs. Useful for liquidity providers to offload on-chain channel costs to end users.
Please refer to LdkChannelConfig for further details.
Trait Implementations§
Source§impl Clone for ChannelConfig
impl Clone for ChannelConfig
Source§fn clone(&self) -> ChannelConfig
fn clone(&self) -> ChannelConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more