Skip to content

Commit

Permalink
f comment
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinewallace committed Sep 28, 2022
1 parent 846dd0f commit fdaadac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lightning/src/routing/onion_message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ pub fn find_path<L: Deref, GL: Deref>(
return Ok(path)
}
if let Some(node_info) = network_nodes.get(&node_id) {
// Only consider the network graph if first_hops does not override it.
if valid_first_hops.contains(&node_id) || node_id == our_node_id {
} else if let Some(node_ann) = &node_info.announcement_info {
if !node_ann.features.supports_onion_messages() || node_ann.features.requires_unknown_bits()
Expand Down

0 comments on commit fdaadac

Please sign in to comment.