pub struct SendingParameters {
pub max_total_routing_fee_msat: Option<Option<u64>>,
pub max_total_cltv_expiry_delta: Option<u32>,
pub max_path_count: Option<u8>,
pub max_channel_saturation_power_of_half: Option<u8>,
}
Expand description
Represents information used to send a payment.
Fields§
§max_total_routing_fee_msat: Option<Option<u64>>
uniffi
only.The maximum total fees, in millisatoshi, that may accrue during route finding.
This limit also applies to the total fees that may arise while retrying failed payment paths.
Note that values below a few sats may result in some paths being spuriously ignored.
max_total_cltv_expiry_delta: Option<u32>
The maximum total CLTV delta we accept for the route.
Defaults to DEFAULT_MAX_TOTAL_CLTV_EXPIRY_DELTA
.
max_path_count: Option<u8>
The maximum number of paths that may be used by (MPP) payments.
Defaults to DEFAULT_MAX_PATH_COUNT
.
max_channel_saturation_power_of_half: Option<u8>
Selects the maximum share of a channel’s total capacity which will be sent over a channel, as a power of 1/2.
A higher value prefers to send the payment using more MPP parts whereas a lower value prefers to send larger MPP parts, potentially saturating channels and increasing failure probability for those paths.
Note that this restriction will be relaxed during pathfinding after paths which meet this restriction have been found. While paths which meet this criteria will be searched for, it is ultimately up to the scorer to select them over other paths.
Examples:
Value | Max Proportion of Channel Capacity Used |
---|---|
0 | Up to 100% of the channel’s capacity |
1 | Up to 50% of the channel’s capacity |
2 | Up to 25% of the channel’s capacity |
3 | Up to 12.5% of the channel’s capacity |
Default value: 2
Trait Implementations§
Source§impl Clone for SendingParameters
impl Clone for SendingParameters
Source§fn clone(&self) -> SendingParameters
fn clone(&self) -> SendingParameters
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for SendingParameters
impl Debug for SendingParameters
Source§impl PartialEq for SendingParameters
impl PartialEq for SendingParameters
impl StructuralPartialEq for SendingParameters
Auto Trait Implementations§
impl Freeze for SendingParameters
impl RefUnwindSafe for SendingParameters
impl Send for SendingParameters
impl Sync for SendingParameters
impl Unpin for SendingParameters
impl UnwindSafe for SendingParameters
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<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