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

Function load_channel

plugins/askrene/layer.c:468–479  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

466}
467
468static void load_channel(struct plugin *plugin,
469 struct layer *layer,
470 const u8 **cursor,
471 size_t *len)
472{
473 struct node_id n1, n2;
474 struct short_channel_id scid;
475 struct amount_msat capacity;
476
477 if (fromwire_dstore_channel(cursor, len, &n1, &n2, &scid, &capacity))
478 add_local_channel(layer, &n1, &n2, scid, capacity);
479}
480
481static void towire_save_channel_update(u8 **data, const struct local_update *lu)
482{

Callers 1

populate_layerFunction · 0.85

Calls 2

fromwire_dstore_channelFunction · 0.85
add_local_channelFunction · 0.85

Tested by

no test coverage detected