get_route: fix path value contribution to include min htlc overpay 2023-09-2570-fuzz-test
authorValentine Wallace <vwallace@protonmail.com>
Wed, 27 Sep 2023 03:44:27 +0000 (23:44 -0400)
committerValentine Wallace <vwallace@protonmail.com>
Wed, 27 Sep 2023 17:19:51 +0000 (13:19 -0400)
commitf3857d0f533d7a540e9ee321cbc11a393608827d
treecfc1fab7b90bb5e136712eff32428dfc5a6961e6
parentea38b938bb824e3663137785eaf0b8cfe64c3275
get_route: fix path value contribution to include min htlc overpay

Previously, the fuzzer hit a debug panic because we wouldn't include the amount
overpaid to meet a last hop's min_htlc in the total collected paths value. We
now include this value and also penalize hops along the overpaying path to
ensure that it gets deprioritized in path selection.
lightning/src/routing/router.rs