Skip to content

Commit 1c61247

Browse files
committed
f names
1 parent c8a3cf7 commit 1c61247

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lightning/src/routing/router.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -994,21 +994,21 @@ where L::Target: Logger {
994994
(amount_to_transfer_over_msat < $next_hops_path_htlc_minimum_msat &&
995995
recommended_value_msat > $next_hops_path_htlc_minimum_msat));
996996

997-
let channel_failed_on_this_payment =
997+
let payment_failed_on_this_channel =
998998
payment_params.previously_failed_channels.contains(&short_channel_id);
999999

10001000
// If HTLC minimum is larger than the amount we're going to transfer, we shouldn't
10011001
// bother considering this channel. If retrying with recommended_value_msat may
10021002
// allow us to hit the HTLC minimum limit, set htlc_minimum_limit so that we go
10031003
// around again with a higher amount.
10041004
if contributes_sufficient_value && doesnt_exceed_max_path_length &&
1005-
doesnt_exceed_cltv_delta_limit && !channel_failed_on_this_payment &&
1005+
doesnt_exceed_cltv_delta_limit && !payment_failed_on_this_channel &&
10061006
may_overpay_to_meet_path_minimum_msat
10071007
{
10081008
hit_minimum_limit = true;
10091009
} else if contributes_sufficient_value && doesnt_exceed_max_path_length &&
10101010
doesnt_exceed_cltv_delta_limit && over_path_minimum_msat &&
1011-
!channel_failed_on_this_payment
1011+
!payment_failed_on_this_channel
10121012
{
10131013
// Note that low contribution here (limited by available_liquidity_msat)
10141014
// might violate htlc_minimum_msat on the hops which are next along the
@@ -5510,7 +5510,7 @@ mod tests {
55105510

55115511
#[test]
55125512
fn avoids_recently_failed_paths() {
5513-
// Ensure that the router always avoids all of the `recently_failed_channels` channels by
5513+
// Ensure that the router always avoids all of the `previously_failed_channels` channels by
55145514
// randomly inserting channels into it until we can't find a route anymore.
55155515
let (secp_ctx, network, _, _, logger) = build_graph();
55165516
let (_, our_id, _, nodes) = get_nodes(&secp_ctx);

0 commit comments

Comments
 (0)