Skip to content

Commit af7da81

Browse files
committed
f - expand docs
1 parent 75838b9 commit af7da81

File tree

1 file changed

+4
-0
lines changed
  • lightning/src/blinded_path

1 file changed

+4
-0
lines changed

lightning/src/blinded_path/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,10 @@ impl BlindedPath {
220220

221221
/// Attempts to a use a compact representation for the [`IntroductionNode`] by using a directed
222222
/// short channel id from a channel in `network_graph` leading to the introduction node.
223+
///
224+
/// While this may result in a smaller encoding, there is a trade off in that the path may
225+
/// become invalid if the channel is closed or hasn't been propagated via gossip. Therefore,
226+
/// calling this many not be suitable for long-lived blinded paths.
223227
pub fn use_compact_introduction_node(&mut self, network_graph: &ReadOnlyNetworkGraph) {
224228
if let IntroductionNode::NodeId(pubkey) = &self.introduction_node {
225229
let node_id = NodeId::from_pubkey(pubkey);

0 commit comments

Comments
 (0)