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

Function release_one_connection_from_timer

connectd/connectd.c:1650–1660  ·  view source on GitHub ↗

Every second we release one connection, so we don't get stuck even * if there are many peers to connect to and lightningd doesn't attach * subds to any of them. */

Source from the content-addressed store, hash-verified

1648 * if there are many peers to connect to and lightningd doesn't attach
1649 * subds to any of them. */
1650static void release_one_connection_from_timer(struct daemon *daemon)
1651{
1652 release_one_waiting_connection(daemon, "timer");
1653
1654 daemon->connect_release_timer
1655 = new_reltimer(&daemon->timers,
1656 daemon,
1657 time_from_sec(1),
1658 release_one_connection_from_timer,
1659 daemon);
1660}
1661
1662/*~ Parse the incoming connect init message from lightningd ("master") and
1663 * assign config variables to the daemon; it should be the first message we

Callers 1

connect_initFunction · 0.85

Calls 2

time_from_secFunction · 0.85

Tested by

no test coverage detected