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

Function begin_sync_timer

gossipd/seeker.c:1107–1117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1105}
1106
1107static void begin_sync_timer(struct seeker *seeker)
1108{
1109 if (seeker->sync_timer)
1110 tal_free(seeker->sync_timer);
1111 const u32 polltime = GOSSIP_SEEKER_RESYNC_INTERVAL(seeker);
1112
1113 seeker->sync_timer = new_reltimer(&seeker->daemon->timers,
1114 seeker,
1115 time_from_sec(polltime),
1116 full_sync_random_peer, seeker);
1117}
1118
1119/* We get this when we have a new peer. */
1120void seeker_setup_peer_gossip(struct seeker *seeker, struct peer *peer)

Callers 2

full_sync_random_peerFunction · 0.85
seeker_setup_peer_gossipFunction · 0.85

Calls 2

tal_freeFunction · 0.85
time_from_secFunction · 0.85

Tested by

no test coverage detected