]> git.bitcoin.ninja Git - rust-lightning/commit
Onion messages: fix edge case where we are the introduction node
authorValentine Wallace <vwallace@protonmail.com>
Fri, 21 Oct 2022 19:09:03 +0000 (15:09 -0400)
committerValentine Wallace <vwallace@protonmail.com>
Mon, 31 Oct 2022 16:38:31 +0000 (12:38 -0400)
commita4e242ba5f5260dadf4781d9f8c1cf36845b0e18
treedd2a1c21febc338b3684f80b4689d798c4b6130e
parent20eecd5a768fef491104fa18cf509b25f5ad1877
Onion messages: fix edge case where we are the introduction node

If we're sending straight to a blinded route with no unblinded intermediate
hops, and we are the introduction node, we need to advance the blinded route by
one hop so that the second hop is the new introduction node.
lightning/src/onion_message/blinded_route.rs
lightning/src/onion_message/functional_tests.rs
lightning/src/onion_message/messenger.rs