Must not already exist in map! */
| 84 | |
| 85 | /* Must not already exist in map! */ |
| 86 | static struct peer_backup *add_to_backup_map(struct chanbackup *cb, |
| 87 | const struct node_id *peer, |
| 88 | const u8 *data TAKES) |
| 89 | { |
| 90 | struct peer_backup *pb = tal(cb->backups, struct peer_backup); |
| 91 | pb->peer = *peer; |
| 92 | pb->data = tal_dup_talarr(pb, u8, data); |
| 93 | backup_map_add(cb->backups, pb); |
| 94 | return pb; |
| 95 | } |
| 96 | |
| 97 | static void remove_peer(struct plugin *plugin, const struct node_id *node_id) |
| 98 | { |
no outgoing calls
no test coverage detected