File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments