Skip to content

Commit 912242d

Browse files
committed
f - fix up comment
1 parent 39f1470 commit 912242d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lightning/src/routing/router.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -924,10 +924,9 @@ where L::Target: Logger {
924924
recommended_value_msat > $next_hops_path_htlc_minimum_msat));
925925

926926
// If HTLC minimum is larger than the amount we're going to transfer, we shouldn't
927-
// bother considering this channel.
928-
// Since we're choosing amount_to_transfer_over_msat as maximum possible, it can
929-
// be only reduced later (not increased), so this channel should just be skipped
930-
// as not sufficient.
927+
// bother considering this channel. If retrying with recommended_value_msat may
928+
// allow us to hit the HTLC minimum limit, set htlc_minimum_limit so that we go
929+
// around again with a higher amount.
931930
if contributes_sufficient_value && doesnt_exceed_cltv_delta_limit && may_overpay_to_meet_path_minimum_msat {
932931
hit_minimum_limit = true;
933932
} else if contributes_sufficient_value && doesnt_exceed_cltv_delta_limit && over_path_minimum_msat {

0 commit comments

Comments
 (0)