We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1521b92 commit 9a967d6Copy full SHA for 9a967d6
gossipd/seeker.c
@@ -829,9 +829,11 @@ static struct node_id *get_random_node(const tal_t *ctx,
829
struct node_id id;
830
831
gossmap_node_get_id(gossmap, node, &id);
832
+
833
/* Make sure it *has* an announcement, and we're not
834
* already connected */
- if (gossmap_node_get_announce(tmpctx, gossmap, node)
835
+ if (!node_id_eq(&id, &seeker->daemon->id)
836
+ && gossmap_node_get_announce(tmpctx, gossmap, node)
837
&& !find_peer(seeker->daemon, &id)) {
838
return tal_dup(ctx, struct node_id, &id);
839
}
0 commit comments