Package org.ldk.structs
Interface ScoreLookUp.ScoreLookUpInterface
-
- Enclosing class:
- ScoreLookUp
public static interface ScoreLookUp.ScoreLookUpInterface
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longchannel_penalty_msat(long short_channel_id, NodeId source, NodeId target, ChannelUsage usage, ProbabilisticScoringFeeParameters score_params)Returns the fee in msats willing to be paid to avoid routing `send_amt_msat` through the given channel in the direction from `source` to `target`.
-
-
-
Method Detail
-
channel_penalty_msat
long channel_penalty_msat(long short_channel_id, NodeId source, NodeId target, ChannelUsage usage, ProbabilisticScoringFeeParameters score_params)Returns the fee in msats willing to be paid to avoid routing `send_amt_msat` through the given channel in the direction from `source` to `target`. The channel's capacity (less any other MPP parts that are also being considered for use in the same payment) is given by `capacity_msat`. It may be determined from various sources such as a chain data, network gossip, or invoice hints. For invoice hints, a capacity near [`u64::max_value`] is given to indicate sufficient capacity for the invoice's full amount. Thus, implementations should be overflow-safe.
-
-