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

Function destroy_peer

lightningd/peer_control.c:78–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78static void destroy_peer(struct peer *peer)
79{
80 peer_node_id_map_del(peer->ld->peers, peer);
81 if (peer->dbid)
82 peer_dbid_map_del(peer->ld->peers_by_dbid, peer);
83}
84
85void peer_set_dbid(struct peer *peer, u64 dbid)
86{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected