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

Function add_to_backup_map

plugins/chanbackup.c:86–95  ·  view source on GitHub ↗

Must not already exist in map! */

Source from the content-addressed store, hash-verified

84
85/* Must not already exist in map! */
86static 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
97static void remove_peer(struct plugin *plugin, const struct node_id *node_id)
98{

Callers 2

json_state_changedFunction · 0.85
setup_backup_mapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected