File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -1782,7 +1782,11 @@ mod bucketed_history {
1782
1782
let mut cumulative_success_prob_times_billion = 0 ;
1783
1783
// Special-case the 0th min bucket - it generally means we failed a payment, so only
1784
1784
// consider the highest (i.e. largest-offset-from-max-capacity) max bucket for all
1785
- // points against the 0th min bucket!
1785
+ // points against the 0th min bucket. This avoids the case where we fail to route
1786
+ // increasingly lower values over a channel, but treat each failure as a separate
1787
+ // datapoint, many of which may have relatively high maximum-available-liquidity
1788
+ // values, which will result in us thinking we have some nontrivial probability of
1789
+ // routing up to that amount.
1786
1790
if self . min_liquidity_offset_history . buckets [ 0 ] != 0 {
1787
1791
let mut highest_max_bucket_with_points = 0 ;
1788
1792
let mut total_max_points = 0 ;
You can’t perform that action at this time.
0 commit comments