Skip to content

Commit 7ae896b

Browse files
committed
f add docs on channel_details_to_forward_nodes
1 parent 46bc7f6 commit 7ae896b

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

lightning/src/ln/channelmanager.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13432,7 +13432,7 @@ macro_rules! create_offer_builder { ($self: ident, $builder: ty) => {
1343213432
let mut peers = Vec::with_capacity(other_nodes_channels.len() + 1);
1343313433
peers.push(($self.get_our_node_id(), $self.get_peers_for_blinded_path()));
1343413434
for (node_id, peer_chans) in other_nodes_channels {
13435-
peers.push((node_id, Self::channel_details_to_forward_node(peer_chans)));
13435+
peers.push((node_id, Self::channel_details_to_forward_nodes(peer_chans)));
1343613436
}
1343713437

1343813438
let builder = $self.flow.create_phantom_offer_builder(
@@ -14057,7 +14057,9 @@ impl<
1405714057
now
1405814058
}
1405914059

14060-
fn channel_details_to_forward_node(
14060+
/// Converts a list of channels to a list of peers which may be suitable to receive onion
14061+
/// messages through.
14062+
fn channel_details_to_forward_nodes(
1406114063
mut channel_list: Vec<ChannelDetails>,
1406214064
) -> Vec<MessageForwardNode> {
1406314065
channel_list.sort_unstable_by_key(|chan| chan.counterparty.node_id);

0 commit comments

Comments
 (0)