]> git.bitcoin.ninja Git - rust-lightning/commit
Add NodeInfo::is_tor_only
authorJeffrey Czyz <jkczyz@gmail.com>
Tue, 27 Feb 2024 19:25:25 +0000 (13:25 -0600)
committerJeffrey Czyz <jkczyz@gmail.com>
Tue, 27 Feb 2024 22:14:44 +0000 (16:14 -0600)
commit093ceffd246c13aab8407d472531a87269b735c7
tree592714d08e4803d8d42639ef06ffc8533760a172
parent36e434d8cefe6b533a2ab378d2d65923433df373
Add NodeInfo::is_tor_only

Add a method to NodeInfo to determine if the node has only announced Tor
addresses. Useful for preferring blinded paths that don't use Tor for
better reliability and improved latency.
lightning/src/ln/msgs.rs
lightning/src/routing/gossip.rs