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

Function load_channel

plugins/askrene/layer.c:461–472  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

459}
460
461static void load_channel(struct plugin *plugin,
462 struct layer *layer,
463 const u8 **cursor,
464 size_t *len)
465{
466 struct node_id n1, n2;
467 struct short_channel_id scid;
468 struct amount_msat capacity;
469
470 if (fromwire_dstore_channel(cursor, len, &n1, &n2, &scid, &capacity))
471 add_local_channel(layer, &n1, &n2, scid, capacity);
472}
473
474static void towire_save_channel_update(u8 **data, const struct local_update *lu)
475{

Callers 1

populate_layerFunction · 0.85

Calls 2

fromwire_dstore_channelFunction · 0.85
add_local_channelFunction · 0.85

Tested by

no test coverage detected