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

Function reconnect

connectd/connectd.c:889–901  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

887 PRINTF_FMT(7, 8);
888
889static void reconnect(struct important_id *imp)
890{
891 struct wireaddr_internal *addrs;
892
893 addrs = tal_dup_talarr(tmpctx, struct wireaddr_internal, imp->addrs);
894
895 /* Do gossmap lookup to find any addresses from there, and append. */
896 append_gossmap_addresses(&addrs, imp->daemon, &imp->id);
897
898 imp->reconnect_timer = NULL;
899 try_connect_peer(imp->daemon, &imp->id, take(addrs),
900 "reconnect by timer");
901}
902
903static void schedule_reconnect_if_important(struct daemon *daemon,
904 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