]> git.bitcoin.ninja Git - rust-lightning/commit
get_route: fix path_min for first_hop<>network_node candidates
authorValentine Wallace <vwallace@protonmail.com>
Wed, 27 Sep 2023 02:21:15 +0000 (22:21 -0400)
committerValentine Wallace <vwallace@protonmail.com>
Wed, 27 Sep 2023 17:19:51 +0000 (13:19 -0400)
commitea38b938bb824e3663137785eaf0b8cfe64c3275
treed204d55d7734010e2ab90765b258a6ca142fbf96
parentd83295ff5c1d4c09f07caf8ec2db758e2c933d79
get_route: fix path_min for first_hop<>network_node candidates

Previously, we would add a first_hop<>network_node channel that did not have
enough contribution amount to cover the next channel's min htlc plus fees,
because we were storing the next hop as having a path_min that did not include
fees, and would add a connecting first_hop node that did not have enough
contribution amount, leading to a debug panic upon invalid path construction.
lightning/src/routing/router.rs