Skip to content

Commit b71cf09

Browse files
committed
f correct comment
1 parent 0d38ad9 commit b71cf09

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lightning/src/routing/scoring.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1047,9 +1047,9 @@ fn success_probability(
10471047

10481048
// Assume the channel has a probability density function of (x - 0.5)^2 for values from
10491049
// 0 to 1 (where 1 is the channel's full capacity). The success probability given some
1050-
// liquidity bounds is thus the integral under the curve from the minimum liquidity to
1051-
// the amount, divided by the same integral from the minimum to the maximum liquidity
1052-
// bounds.
1050+
// liquidity bounds is thus the integral under the curve from the amount to maximum
1051+
// estimated liquidity, divided by the same integral from the minimum to the maximum
1052+
// estimated liquidity bounds.
10531053
//
10541054
// Because the integral from x to y is simply (y - 0.5)^3 - (x - 0.5)^3, we can
10551055
// calculate the cumulative density function between the min/max bounds trivially. Note

0 commit comments

Comments
 (0)