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

Function get_file_data

plugins/chanbackup.c:248–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246}
247
248static u8 *get_file_data(const tal_t *ctx, struct plugin *p)
249{
250 u8 *scb = grab_file_raw(ctx, FILENAME);
251 if (!scb)
252 plugin_err(p, "Cannot read emergency.recover: %s", strerror(errno));
253 return scb;
254}
255
256/* Returns decrypted SCB in form of a u8 array */
257static u8 *decrypt_scb(struct plugin *p)

Callers 4

decrypt_scbFunction · 0.85
send_to_peersFunction · 0.85
peer_connectedFunction · 0.85

Calls 2

grab_file_rawFunction · 0.85
plugin_errFunction · 0.70

Tested by

no test coverage detected