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

Function connectd_peer_gone

gossipd/gossipd.c:154–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154static void connectd_peer_gone(struct daemon *daemon, const u8 *msg)
155{
156 struct node_id id;
157 struct peer *peer;
158
159 if (!fromwire_gossipd_peer_gone(msg, &id)) {
160 status_failed(STATUS_FAIL_INTERNAL_ERROR,
161 "Bad peer_gone msg from connectd: %s",
162 tal_hex(tmpctx, msg));
163 }
164
165 peer = find_peer(daemon, &id);
166 if (!peer)
167 status_broken("Peer %s already gone?",
168 fmt_node_id(tmpctx, &id));
169 tal_free(peer);
170}
171
172static void handle_recv_gossip(struct daemon *daemon, const u8 *outermsg)
173{

Callers 1

connectd_reqFunction · 0.85

Calls 5

tal_hexFunction · 0.85
fmt_node_idFunction · 0.85
tal_freeFunction · 0.85
find_peerFunction · 0.70
status_failedFunction · 0.50

Tested by

no test coverage detected