Skip to content

Commit a7d3292

Browse files
committed
f missing docs and move inline
1 parent c26aed2 commit a7d3292

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lightning/src/routing/scoring.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -998,14 +998,14 @@ const PRECISION_LOWER_BOUND_DENOMINATOR: u64 = approx::LOWER_BITS_BOUND;
998998
const AMOUNT_PENALTY_DIVISOR: u64 = 1 << 20;
999999
const BASE_AMOUNT_PENALTY_DIVISOR: u64 = 1 << 30;
10001000

1001-
#[inline(always)]
10021001
/// Given liquidity bounds, calculates the success probability (in the form of a numerator and
10031002
/// denominator) of an HTLC. This is a key assumption in our scoring models.
10041003
///
10051004
/// Must not return a numerator or denominator greater than 2^31 for arguments less than 2^31.
1006-
1007-
/// min_zero_implies_no_successes signals that an `amount_msat` of 0 means we've not (recently)
1008-
/// seen an HTLC successfully complete over this channel.
1005+
///
1006+
/// min_zero_implies_no_successes signals that a `min_liquidity_msat` of 0 means we've not
1007+
/// (recently) seen an HTLC successfully complete over this channel.
1008+
#[inline(always)]
10091009
fn success_probability(
10101010
min_liquidity_msat: u64, amount_msat: u64, max_liquidity_msat: u64, _capacity_msat: u64,
10111011
_params: &ProbabilisticScoringFeeParameters, _min_zero_implies_no_successes: bool,

0 commit comments

Comments
 (0)