Skip to content

Commit a1896f8

Browse files
committed
f require actually hitting an htlc min before we go around again
1 parent 68365af commit a1896f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/routing/router.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2454,7 +2454,7 @@ where L::Target: Logger {
24542454
// because we deterministically terminated the search due to low liquidity.
24552455
if !found_new_path && channel_saturation_pow_half != 0 {
24562456
channel_saturation_pow_half = 0;
2457-
} else if !found_new_path && already_collected_value_msat < final_value_msat && path_value_msat != recommended_value_msat {
2457+
} else if !found_new_path && hit_minimum_limit && already_collected_value_msat < final_value_msat && path_value_msat != recommended_value_msat {
24582458
log_trace!(logger, "Failed to collect enough value, but running again to collect extra paths with a potentially higher limit.");
24592459
path_value_msat = recommended_value_msat;
24602460
} else if already_collected_value_msat >= recommended_value_msat || !found_new_path {

0 commit comments

Comments
 (0)