Skip to content

Commit 9111138

Browse files
Fix BlindedPath::new_for_payment docs
1 parent 2c4f824 commit 9111138

File tree

1 file changed

+2
-3
lines changed
  • lightning/src/blinded_path

1 file changed

+2
-3
lines changed

lightning/src/blinded_path/mod.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,9 @@ impl BlindedPath {
7575
})
7676
}
7777

78-
/// Create a blinded path for a payment, to be forwarded along `path`. The last node
79-
/// in `path` will be the destination node.
78+
/// Create a blinded path for a payment, to be forwarded along `intermediate_nodes`.
8079
///
81-
/// Errors if `path` is empty or a node id in `path` is invalid.
80+
/// Errors if a provided node id is invalid.
8281
// TODO: make all payloads the same size with padding + add dummy hops
8382
pub fn new_for_payment<ES: EntropySource, T: secp256k1::Signing + secp256k1::Verification>(
8483
intermediate_nodes: &[(PublicKey, payment::ForwardTlvs)], payee_node_id: PublicKey,

0 commit comments

Comments
 (0)