Skip to content

Commit c3b4c42

Browse files
committed
f add more color to what's going on
1 parent 2af6096 commit c3b4c42

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lightning/src/routing/scoring.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1747,8 +1747,9 @@ mod bucketed_history {
17471747
&self, now: T, last_updated: T, half_life: Duration, amount_msat: u64, capacity_msat: u64)
17481748
-> Option<u64> {
17491749
// If historical penalties are enabled, calculate the penalty by walking the set of
1750-
// historical liquidity bucket (min, max) combinations (where min_idx < max_idx) and, for
1751-
// each, calculate the probability of success given our payment amount, then total the
1750+
// historical liquidity bucket (min, max) combinations (where min_idx < max_idx, as
1751+
// having a minimum above our maximum is an invalid state). For each combination,
1752+
// calculate the probability of success given our payment amount, then total the
17521753
// weighted average probability of success.
17531754
let mut total_valid_points_tracked = 0;
17541755

0 commit comments

Comments
 (0)