MCPcopy Create free account
hub / github.com/ElementsProject/lightning / new_seeker

Function new_seeker

gossipd/seeker.c:131–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129}
130
131struct seeker *new_seeker(struct daemon *daemon)
132{
133 struct seeker *seeker = tal(daemon, struct seeker);
134
135 seeker->daemon = daemon;
136 uintmap_init(&seeker->unknown_scids);
137 uintmap_init(&seeker->stale_scids);
138 seeker->random_peer_softref = NULL;
139 for (size_t i = 0; i < ARRAY_SIZE(seeker->gossiper_softref); i++)
140 seeker->gossiper_softref[i] = NULL;
141 seeker->preferred_peer_softref = NULL;
142 seeker->unknown_nodes = false;
143 set_state(seeker, STARTING_UP, NULL, "New seeker");
144 begin_check_timer(seeker);
145 return seeker;
146}
147
148static void set_preferred_peer(struct seeker *seeker, struct peer *peer)
149{

Callers 1

gossip_initFunction · 0.85

Calls 1

begin_check_timerFunction · 0.85

Tested by

no test coverage detected