From: Valentine Wallace Date: Mon, 28 Aug 2023 17:20:11 +0000 (-0400) Subject: Fix BlindedPath::new_for_payment docs X-Git-Tag: v0.0.117-alpha1~20^2~8 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=911113814f13fa7a6b9645d5419162422ff4f82e;p=rust-lightning Fix BlindedPath::new_for_payment docs --- diff --git a/lightning/src/blinded_path/mod.rs b/lightning/src/blinded_path/mod.rs index 89087a10c..8569a9ef9 100644 --- a/lightning/src/blinded_path/mod.rs +++ b/lightning/src/blinded_path/mod.rs @@ -75,10 +75,9 @@ impl BlindedPath { }) } - /// Create a blinded path for a payment, to be forwarded along `path`. The last node - /// in `path` will be the destination node. + /// Create a blinded path for a payment, to be forwarded along `intermediate_nodes`. /// - /// Errors if `path` is empty or a node id in `path` is invalid. + /// Errors if a provided node id is invalid. // TODO: make all payloads the same size with padding + add dummy hops pub fn new_for_payment( intermediate_nodes: &[(PublicKey, payment::ForwardTlvs)], payee_node_id: PublicKey,