Prefer one-hop blinded path to Tor intro nodes
authorJeffrey Czyz <jkczyz@gmail.com>
Wed, 28 Feb 2024 21:58:14 +0000 (15:58 -0600)
committerJeffrey Czyz <jkczyz@gmail.com>
Wed, 28 Feb 2024 21:58:14 +0000 (15:58 -0600)
commite10583365b36148f500b6c93d999c96060e44791
treec49879f44a426fd8c37918971ef92c21df776ba2
parent5e9a998194ca3f424d96acb0ffbbe9d3fd6b4f76
Prefer one-hop blinded path to Tor intro nodes

If a node is announced, prefer using a one-hop blinded path with it as
the introduction node to using a two-hop blinded path with a Tor-only
introduction node. The one-hop blinded path is more reliable, thus only
use Tor-only nodes if the recipient is unannounced. And then, prefer
non-Tor-only nodes.
lightning/src/ln/offers_tests.rs
lightning/src/onion_message/messenger.rs