Skip to content

Commit 63b3628

Browse files
committed
f require actually hitting an htlc min before we go around again
1 parent 21cf035 commit 63b3628

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
@@ -2455,7 +2455,7 @@ where L::Target: Logger {
24552455
// because we deterministically terminated the search due to low liquidity.
24562456
if !found_new_path && channel_saturation_pow_half != 0 {
24572457
channel_saturation_pow_half = 0;
2458-
} else if !found_new_path && already_collected_value_msat < final_value_msat && path_value_msat != recommended_value_msat {
2458+
} else if !found_new_path && hit_minimum_limit && already_collected_value_msat < final_value_msat && path_value_msat != recommended_value_msat {
24592459
log_trace!(logger, "Failed to collect enough value, but running again to collect extra paths with a potentially higher limit.");
24602460
path_value_msat = recommended_value_msat;
24612461
} else if already_collected_value_msat >= recommended_value_msat || !found_new_path {

0 commit comments

Comments
 (0)