pub enum EffectiveCapacity {
ExactLiquidity {
liquidity_msat: u64,
},
AdvertisedMaxHTLC {
amount_msat: u64,
},
Total {
capacity_msat: u64,
htlc_maximum_msat: u64,
},
Infinite,
HintMaxHTLC {
amount_msat: u64,
},
Unknown,
}Expand description
The effective capacity of a channel for routing purposes.
While this may be smaller than the actual channel capacity, amounts greater than
Self::as_msat should not be routed through the channel.
Variants§
ExactLiquidity
The available liquidity in the channel known from being a channel counterparty, and thus a direct hop.
Fields
AdvertisedMaxHTLC
The maximum HTLC amount in one direction as advertised on the gossip network.
Total
The total capacity of the channel as determined by the funding transaction.
Fields
Infinite
A capacity sufficient to route any payment, typically used for private channels provided by an invoice.
HintMaxHTLC
The maximum HTLC amount as provided by an invoice route hint.
Unknown
A capacity that is unknown possibly because either the chain state is unavailable to know
the total capacity or the htlc_maximum_msat was not advertised on the gossip network.
Implementations§
Trait Implementations§
Source§impl Clone for EffectiveCapacity
impl Clone for EffectiveCapacity
Source§fn clone(&self) -> EffectiveCapacity
fn clone(&self) -> EffectiveCapacity
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more