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

Function find_connecting

connectd/connectd.c:99–103  ·  view source on GitHub ↗

~ Most simple search functions start with find_; in this case, search * for an existing attempt to connect the given peer id. */

Source from the content-addressed store, hash-verified

97/*~ Most simple search functions start with find_; in this case, search
98 * for an existing attempt to connect the given peer id. */
99static struct connecting *find_connecting(struct daemon *daemon,
100 const struct node_id *id)
101{
102 return connecting_htable_get(daemon->connecting, id);
103}
104
105/*~ When we free a peer, we remove it from the daemon's hashtable. */
106static void destroy_peer(struct peer *peer)

Callers 3

peer_connectedFunction · 0.85
try_connect_peerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected