| 95 | } |
| 96 | |
| 97 | static 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 */ |
| 111 | static bool json_to_scb_chan(const char *buffer, |
no test coverage detected