get_route: fix path_min when adding first_hop<>route_hint candidates
authorValentine Wallace <vwallace@protonmail.com>
Wed, 27 Sep 2023 01:19:33 +0000 (21:19 -0400)
committerValentine Wallace <vwallace@protonmail.com>
Wed, 27 Sep 2023 17:19:51 +0000 (13:19 -0400)
commit2aacbae67ae0c0353a2d65e1b542c69d7a543763
treeceebc7410f3030486e200cf41c2e2f17082834d3
parent5263b07b55c9e4d180b7cdc1f072222160a8b3dd
get_route: fix path_min when adding first_hop<>route_hint candidates

Previously, we would add a candidate hop to the list of potential hops even
though its available contribution wasn't sufficient to meet the next hop's
min_htlc. We'd subsequently build an invalid path using this hop and hit a
debug assertion.
lightning/src/routing/router.rs