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

Function load_channel_update

plugins/askrene/layer.c:505–531  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

503}
504
505static void load_channel_update(struct plugin *plugin,
506 struct layer *layer,
507 const u8 **cursor,
508 size_t *len)
509{
510 struct short_channel_id_dir scidd;
511 bool *enabled;
512 struct amount_msat *htlc_min, *htlc_max, *base_fee;
513 u32 *proportional_fee;
514 u16 *delay;
515
516 if (fromwire_dstore_channel_update(tmpctx, cursor, len,
517 &scidd,
518 &enabled,
519 &htlc_min,
520 &htlc_max,
521 &base_fee,
522 &proportional_fee,
523 &delay))
524 add_update_channel(layer, &scidd,
525 enabled,
526 htlc_min,
527 htlc_max,
528 base_fee,
529 proportional_fee,
530 delay);
531}
532
533static void towire_save_channel_constraint(u8 **data, const struct constraint *c)
534{

Callers 1

populate_layerFunction · 0.85

Calls 2

add_update_channelFunction · 0.85

Tested by

no test coverage detected