Skip to content

Commit 5280490

Browse files
f comment
1 parent d86bf6e commit 5280490

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
@@ -73,6 +73,7 @@ pub fn find_path<L: Deref, GL: Deref>(
7373
return Ok(path)
7474
}
7575
if let Some(node_info) = network_nodes.get(&node_id) {
76+
// Only consider the network graph if first_hops does not override it.
7677
if valid_first_hops.contains(&node_id) || node_id == our_node_id {
7778
} else if let Some(node_ann) = &node_info.announcement_info {
7879
if !node_ann.features.supports_onion_messages() || node_ann.features.requires_unknown_bits()

0 commit comments

Comments
 (0)