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

Function peer_made_progress

gossipd/seeker.c:177–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175}
176
177static bool peer_made_progress(struct seeker *seeker)
178{
179 const struct peer *peer = seeker->random_peer_softref;
180
181 /* Has it made progress (at least one valid update per second)? If
182 * not, we assume it's finished, and if it hasn't, we'll end up
183 * querying backwards in next steps. */
184 if (peer->gossip_counter
185 >= seeker->prev_gossip_count + GOSSIP_SEEKER_INTERVAL(seeker)) {
186 seeker->prev_gossip_count = peer->gossip_counter;
187 return true;
188 }
189
190 return false;
191}
192
193static void disable_gossip_stream(struct seeker *seeker, struct peer *peer)
194{

Callers 2

check_firstpeerFunction · 0.85
check_probeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected