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: u32
Amount (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: u32
Amount (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: u16
The 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: MaxDustHTLCExposure
Limit 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: u64
The 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: bool
If 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 moreSource§impl Debug for ChannelConfig
impl Debug for ChannelConfig
Source§impl Default for ChannelConfig
impl Default for ChannelConfig
Source§impl From<ChannelConfig> for ChannelConfig
impl From<ChannelConfig> for ChannelConfig
Source§fn from(value: LdkChannelConfig) -> Self
fn from(value: LdkChannelConfig) -> Self
Source§impl From<ChannelConfig> for ChannelConfig
impl From<ChannelConfig> for ChannelConfig
Source§fn from(value: ChannelConfig) -> Self
fn from(value: ChannelConfig) -> Self
Source§impl PartialEq for ChannelConfig
impl PartialEq for ChannelConfig
impl Copy for ChannelConfig
impl Eq for ChannelConfig
impl StructuralPartialEq for ChannelConfig
Auto Trait Implementations§
impl Freeze for ChannelConfig
impl RefUnwindSafe for ChannelConfig
impl Send for ChannelConfig
impl Sync for ChannelConfig
impl Unpin for ChannelConfig
impl UnwindSafe for ChannelConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more