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

Function remove_peer

plugins/chanbackup.c:97–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97static void remove_peer(struct plugin *plugin, const struct node_id *node_id)
98{
99 struct chanbackup *cb = chanbackup(plugin);
100 struct node_id *peer;
101
102 /* Eliminate it (probably it's disconnected) */
103 peer = peer_map_get(cb->peers, node_id);
104 if (peer) {
105 peer_map_del(cb->peers, peer);
106 tal_free(peer);
107 }
108}
109
110/* Helper to fetch out SCB from the RPC call */
111static bool json_to_scb_chan(const char *buffer,

Calls 2

tal_freeFunction · 0.85
chanbackupFunction · 0.70

Tested by

no test coverage detected