]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Merge pull request #2305 from valentinewallace/2023-05-respect-hint-maxhtlc
authorvalentinewallace <valentinewallace@users.noreply.github.com>
Wed, 7 Jun 2023 13:02:26 +0000 (15:02 +0200)
committerGitHub <noreply@github.com>
Wed, 7 Jun 2023 13:02:26 +0000 (15:02 +0200)
Respect route hint `max_htlc` in pathfinding

1  2 
lightning/src/routing/gossip.rs
lightning/src/routing/router.rs

Simple merge
index ef6fef0a7eb42ea87b8d0876f0b11f99112d83cb,9defe38aa7e115bd99515968a167c85a3c1c8c32..e9c2988d4a7d4faecbc0451291c34d33ae8ef6c0
@@@ -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