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

Function find_connecting

connectd/connectd.c:100–104  ·  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

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