]> git.bitcoin.ninja Git - rust-lightning/commit
Router: account for blinded path fee, etc on first_hop<>intro hop add
authorValentine Wallace <vwallace@protonmail.com>
Tue, 15 Aug 2023 21:32:46 +0000 (17:32 -0400)
committerValentine Wallace <vwallace@protonmail.com>
Thu, 24 Aug 2023 15:38:30 +0000 (11:38 -0400)
commitc9f5a75c8e21e5e43656aa0532dc1163ca5bc83e
tree7370a5c725b64bb0e24fe1633056b3299cf5a9f0
parenta24626b919bf5ec5206ab65746fcee274cd589ec
Router: account for blinded path fee, etc on first_hop<>intro hop add

This previously led to a debug panic in the router because we wouldn't account
for the blinded path fee when calculating first_hop<>intro_node hop's available
liquidity and construct an invalid path that forwarded more over said hop than
was actually available.

This also led to us hitting unreachable code, see direct_to_matching_intro_nodes
test description.
lightning/src/routing/router.rs