From 911113814f13fa7a6b9645d5419162422ff4f82e Mon Sep 17 00:00:00 2001 From: Valentine Wallace Date: Mon, 28 Aug 2023 13:20:11 -0400 Subject: [PATCH] Fix BlindedPath::new_for_payment docs --- lightning/src/blinded_path/mod.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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, -- 2.39.5