From: valentinewallace Date: Wed, 7 Jun 2023 13:02:26 +0000 (+0200) Subject: Merge pull request #2305 from valentinewallace/2023-05-respect-hint-maxhtlc X-Git-Tag: v0.0.116-alpha1~18 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=7a78998552b1d3c2d97f337a7d5aaf7fe1aa70b4;p=rust-lightning Merge pull request #2305 from valentinewallace/2023-05-respect-hint-maxhtlc Respect route hint `max_htlc` in pathfinding --- 7a78998552b1d3c2d97f337a7d5aaf7fe1aa70b4 diff --cc lightning/src/routing/router.rs index ef6fef0a,9defe38a..e9c2988d --- a/lightning/src/routing/router.rs +++ b/lightning/src/routing/router.rs @@@ -1652,9 -1676,9 +1676,9 @@@ where L::Target: Logger { old_entry.value_contribution_msat = value_contribution_msat; } - did_add_update_path_to_src_node = true; + did_add_update_path_to_src_node = Some(value_contribution_msat); } else if old_entry.was_processed && new_cost < old_cost { - #[cfg(all(not(feature = "_bench_unstable"), any(test, fuzzing)))] + #[cfg(all(not(ldk_bench), any(test, fuzzing)))] { // If we're skipping processing a node which was previously // processed even though we found another path to it with a