Skip to content

Commit 8a3c465

Browse files
committed
f - missed calculate_success_probability_times_billion
1 parent d832df0 commit 8a3c465

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lightning/src/routing/scoring.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1190,7 +1190,8 @@ DirectedChannelLiquidity< L, HT, T> {
11901190
score_params.historical_liquidity_penalty_amount_multiplier_msat != 0 {
11911191
if let Some(cumulative_success_prob_times_billion) = self.liquidity_history
11921192
.calculate_success_probability_times_billion(
1193-
score_params, amount_msat, self.capacity_msat)
1193+
score_params, total_inflight_amount_msat, self.capacity_msat
1194+
)
11941195
{
11951196
let historical_negative_log10_times_2048 =
11961197
log_approx::negative_log10_times_2048(cumulative_success_prob_times_billion + 1, 1024 * 1024 * 1024);

0 commit comments

Comments
 (0)