Merge pull request #3113 from TheBlueMatt/2024-04-async-monitor-fuzz
[rust-lightning] / lightning / src / onion_message / messenger.rs
index 5ceb0683c57203396da6612a6e2e7835c4c2f8bc..ee49d00e99dea2de48c8a9c2fa76e92c2c2b9b27 100644 (file)
@@ -456,6 +456,13 @@ pub trait MessageRouter {
 }
 
 /// A [`MessageRouter`] that can only route to a directly connected [`Destination`].
+///
+/// # Privacy
+///
+/// Creating [`BlindedPath`]s may affect privacy since, if a suitable path cannot be found, it will
+/// create a one-hop path using the recipient as the introduction node if it is a announced node.
+/// Otherwise, there is no way to find a path to the introduction node in order to send a message,
+/// and thus an `Err` is returned.
 pub struct DefaultMessageRouter<G: Deref<Target=NetworkGraph<L>>, L: Deref, ES: Deref>
 where
        L::Target: Logger,