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

Function save_channel

plugins/askrene/layer.c:449–459  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

447}
448
449static void save_channel(struct layer *layer, const struct local_channel *lc)
450{
451 u8 *data;
452
453 if (!layer->persistent)
454 return;
455
456 data = tal_arr(tmpctx, u8, 0);
457 towire_save_channel(&data, lc);
458 append_layer_datastore(layer, data);
459}
460
461static void load_channel(struct plugin *plugin,
462 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