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

Function destroy_peer

connectd/connectd.c:107–111  ·  view source on GitHub ↗

~ When we free a peer, we remove it from the daemon's hashtable. */

Source from the content-addressed store, hash-verified

105
106/*~ When we free a peer, we remove it from the daemon's hashtable. */
107static void destroy_peer(struct peer *peer)
108{
109 if (!peer_htable_del(peer->daemon->peers, peer))
110 abort();
111}
112
113/*~ This is where we create a new peer. */
114static struct peer *new_peer(struct daemon *daemon,

Callers

nothing calls this directly

Calls 1

abortFunction · 0.85

Tested by

no test coverage detected