Skip to content

Commit 8f63b9f

Browse files
committed
f specify what "sane" means
1 parent 09a1788 commit 8f63b9f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lightning/src/routing/scoring.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -758,10 +758,10 @@ impl<L: Deref<Target = u64>, BRT: Deref<Target = HistoricalBucketRangeTracker>,
758758

759759
if params.historical_liquidity_penalty_multiplier_msat != 0 ||
760760
params.historical_liquidity_penalty_amount_multiplier_msat != 0 {
761-
// If historical penalties are enabled, calculate the penalty by walking the (sane) set
762-
// of historical liquidity bucket (min, max) combinations and, for each, calculate the
763-
// probability of success given our payment amount, then total the weighted average
764-
// probability of success.
761+
// If historical penalties are enabled, calculate the penalty by walking the set of
762+
// historical liquidity bucket (min, max) combinations (where the min is less than the
763+
// max) and, for each, calculate the probability of success given our payment amount,
764+
// then total the weighted average probability of success.
765765
//
766766
// We use a sliding scale to decide which value will be used for a given bucket - the
767767
// first bucket receives zero (ie the lower-bound of the bucket), the last bucket

0 commit comments

Comments
 (0)