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

Function reset_reconnect_timer

connectd/connectd.c:269–276  ·  view source on GitHub ↗

~ Once we've been connected long enough, we reset our backoff reconnection * timer (if we're going to retry). */

Source from the content-addressed store, hash-verified

267/*~ Once we've been connected long enough, we reset our backoff reconnection
268 * timer (if we're going to retry). */
269static void reset_reconnect_timer(struct peer *peer)
270{
271 struct important_id *imp;
272
273 imp = important_id_htable_get(peer->daemon->important_ids, &peer->id);
274 if (imp)
275 imp->reconnect_secs = INITIAL_WAIT_SECONDS;
276}
277
278void send_disconnected(struct daemon *daemon,
279 const struct node_id *id,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected