]> git.bitcoin.ninja Git - rust-lightning/commit
Use one-hop blinded paths only for announced nodes
authorJeffrey Czyz <jkczyz@gmail.com>
Fri, 15 Dec 2023 03:19:57 +0000 (21:19 -0600)
committerJeffrey Czyz <jkczyz@gmail.com>
Fri, 15 Dec 2023 21:40:10 +0000 (15:40 -0600)
commit164c8553e594269a4c42821f04f41df4b41892c8
tree8e6aa7d9af56ac12f010538ae6948743e7e7284b
parent16ee24086cda7a87daf14ad94491215da75a6f9b
Use one-hop blinded paths only for announced nodes

To avoid exposing a node's identity in a blinded path, only create
one-hop blinded paths if the node has been announced, and thus has
public channels. Otherwise, there is no way to route a payment to the
node, exposing its identity needlessly.
lightning/src/onion_message/messenger.rs
lightning/src/routing/router.rs