Skip to content

Commit 6c4d335

Browse files
committed
f add docs on channel_details_to_forward_nodes
1 parent 5ef29ff commit 6c4d335

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
@@ -13446,7 +13446,7 @@ macro_rules! create_offer_builder { ($self: ident, $builder: ty) => {
1344613446
let mut peers = Vec::with_capacity(other_nodes_channels.len() + 1);
1344713447
peers.push(($self.get_our_node_id(), $self.get_peers_for_blinded_path()));
1344813448
for (node_id, peer_chans) in other_nodes_channels {
13449-
peers.push((node_id, Self::channel_details_to_forward_node(peer_chans)));
13449+
peers.push((node_id, Self::channel_details_to_forward_nodes(peer_chans)));
1345013450
}
1345113451

1345213452
let builder = $self.flow.create_phantom_offer_builder(
@@ -14084,7 +14084,9 @@ where
1408414084
now
1408514085
}
1408614086

14087-
fn channel_details_to_forward_node(
14087+
/// Converts a list of channels to a list of peers which may be suitable to receive onion
14088+
/// messages through.
14089+
fn channel_details_to_forward_nodes(
1408814090
mut channel_list: Vec<ChannelDetails>,
1408914091
) -> Vec<MessageForwardNode> {
1409014092
channel_list.sort_unstable_by_key(|chan| chan.counterparty.node_id);

0 commit comments

Comments
 (0)