mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-24 15:02:20 +01:00
Expand DefaultRouter's privacy docs
DefaultRouter::create_blinded_payment_paths may creat a one-hop blinded path with the recipient as the introduction node. Update the privacy section of DefaultRouter's docs to indicate this as is done in the docs for DefaultMessageRouter.
This commit is contained in:
parent
04c51b380d
commit
bde331fe94
1 changed files with 5 additions and 0 deletions
|
@ -45,6 +45,11 @@ pub use lightning_types::routing::{RouteHint, RouteHintHop};
|
|||
///
|
||||
/// # Privacy
|
||||
///
|
||||
/// Creating [`BlindedPaymentPath`]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
|
||||
/// payment, and thus an `Err` is returned.
|
||||
///
|
||||
/// Implements [`MessageRouter`] by delegating to [`DefaultMessageRouter`]. See those docs for
|
||||
/// privacy implications.
|
||||
pub struct DefaultRouter<G: Deref<Target = NetworkGraph<L>>, L: Deref, ES: Deref, S: Deref, SP: Sized, Sc: ScoreLookUp<ScoreParams = SP>> where
|
||||
|
|
Loading…
Add table
Reference in a new issue