Skip to content

Commit 0a45f9a

Browse files
committed
f Revert, don't allow us being intro node
1 parent e2f0429 commit 0a45f9a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lightning/src/routing/router.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2110,10 +2110,9 @@ where L::Target: Logger {
21102110
// Only add the hops in this route to our candidate set if either we are part of
21112111
// the first hop, we have a direct channel to the first hop, or the first hop is in
21122112
// the regular network graph.
2113-
our_node_id == intro_node_id ||
21142113
first_hop_targets.get(&intro_node_id).is_some() ||
21152114
network_nodes.get(&intro_node_id).is_some();
2116-
if !have_intro_node_in_graph { continue }
2115+
if !have_intro_node_in_graph || our_node_id == intro_node_id { continue }
21172116
let candidate = if hint.1.blinded_hops.len() == 1 {
21182117
CandidateRouteHop::OneHopBlinded { hint, hint_idx }
21192118
} else { CandidateRouteHop::Blinded { hint, hint_idx } };

0 commit comments

Comments
 (0)