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

Function save_channel_update

plugins/askrene/layer.c:493–503  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

491}
492
493static void save_channel_update(struct layer *layer, const struct local_update *lu)
494{
495 u8 *data;
496
497 if (!layer->persistent)
498 return;
499
500 data = tal_arr(tmpctx, u8, 0);
501 towire_save_channel_update(&data, lu);
502 append_layer_datastore(layer, data);
503}
504
505static void load_channel_update(struct plugin *plugin,
506 struct layer *layer,

Callers 1

layer_add_update_channelFunction · 0.85

Calls 2

append_layer_datastoreFunction · 0.85

Tested by

no test coverage detected