@@ -516,6 +516,9 @@ pub struct ProbabilisticScorerUsingTime<G: Deref<Target = NetworkGraph>, T: Time
516516}
517517
518518/// Parameters for configuring [`ProbabilisticScorer`].
519+ ///
520+ /// Used to configure a base penalty and a liquidity penalty, the sum of which is the channel
521+ /// penalty (i.e., the amount in msats willing to be paid to avoid routing through the channel).
519522#[ derive( Clone , Copy ) ]
520523pub struct ProbabilisticScoringParameters {
521524 /// A fixed penalty in msats to apply to each channel.
@@ -525,23 +528,20 @@ pub struct ProbabilisticScoringParameters {
525528
526529 /// The function calculating the cost of routing an amount through a channel.
527530 ///
528- /// The cost is multiplied by [`liquidity_penalty_multiplier_msat`] to determine the channel
529- /// penalty (i.e., the amount msats willing to be paid to avoid routing through the channel).
530- /// Penalties are limited to `2 * liquidity_penalty_multiplier_msat`.
531- ///
532- /// The cost is based in part by the knowledge learned from prior successful and unsuccessful
533- /// payments. This knowledge is decayed over time based on [`liquidity_offset_half_life`].
531+ /// The cost is multiplied by [`liquidity_penalty_multiplier_msat`] to determine the liquidity
532+ /// penalty, which is limited to `2 * liquidity_penalty_multiplier_msat`. The cost is based in
533+ /// part by the knowledge learned from prior successful and unsuccessful payments. This
534+ /// knowledge is decayed over time based on [`liquidity_offset_half_life`].
534535 ///
535536 /// Default value: [`ProbabilisticScoringCostFunction::NegativeLogSuccessProbability`]
536537 ///
537538 /// [`liquidity_penalty_multiplier_msat`]: Self::liquidity_penalty_multiplier_msat
538539 /// [`liquidity_offset_half_life`]: Self::liquidity_offset_half_life
539540 pub cost_function : ProbabilisticScoringCostFunction ,
540541
541- /// A multiplier used in conjunction with [`cost_function`] to determine the channel penalty.
542+ /// A multiplier used in conjunction with [`cost_function`] to determine the liquidity penalty.
542543 ///
543- /// The channel penalty is the amount in msats willing to be paid to avoid routing through a
544- /// channel. It is effectively limited to `2 * liquidity_penalty_multiplier_msat`.
544+ /// The liquidity penalty is effectively limited to `2 * liquidity_penalty_multiplier_msat`.
545545 ///
546546 /// Default value: 10,000 msat
547547 ///
0 commit comments