Skip to content

Commit f349312

Browse files
f comment
1 parent 9372f1c commit f349312

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lightning/src/routing/onion_message.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ pub fn find_path<L: Deref, GL: Deref>(
6363
return Ok(reverse_path(visited, our_node_id, dest_node_id, logger)?)
6464
}
6565
if let Some(node_info) = network_nodes.get(&node_id) {
66+
// Only consider the network graph if first_hops does not override it.
6667
if valid_first_hops.contains(&node_id) || node_id == our_node_id {
6768
} else if let Some(node_ann) = &node_info.announcement_info {
6869
if !node_ann.features.supports_onion_messages() || node_ann.features.requires_unknown_bits()

0 commit comments

Comments
 (0)