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

Function save_channel

plugins/askrene/layer.c:456–466  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

454}
455
456static void save_channel(struct layer *layer, const struct local_channel *lc)
457{
458 u8 *data;
459
460 if (!layer->persistent)
461 return;
462
463 data = tal_arr(tmpctx, u8, 0);
464 towire_save_channel(&data, lc);
465 append_layer_datastore(layer, data);
466}
467
468static void load_channel(struct plugin *plugin,
469 struct layer *layer,

Callers 1

layer_add_local_channelFunction · 0.85

Calls 2

towire_save_channelFunction · 0.85
append_layer_datastoreFunction · 0.85

Tested by

no test coverage detected