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

Function reconnect

connectd/connectd.c:833–845  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

831 PRINTF_FMT(7, 8);
832
833static void reconnect(struct important_id *imp)
834{
835 struct wireaddr_internal *addrs;
836
837 addrs = tal_dup_talarr(tmpctx, struct wireaddr_internal, imp->addrs);
838
839 /* Do gossmap lookup to find any addresses from there, and append. */
840 append_gossmap_addresses(&addrs, imp->daemon, &imp->id);
841
842 imp->reconnect_timer = NULL;
843 try_connect_peer(imp->daemon, &imp->id, take(addrs),
844 "reconnect by timer");
845}
846
847static void schedule_reconnect_if_important(struct daemon *daemon,
848 const struct node_id *id)

Callers

nothing calls this directly

Calls 2

append_gossmap_addressesFunction · 0.85
try_connect_peerFunction · 0.85

Tested by

no test coverage detected