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

Function load_channel_constraint

plugins/askrene/layer.c:552–566  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

550}
551
552static void load_channel_constraint(struct plugin *plugin,
553 struct layer *layer,
554 const u8 **cursor,
555 size_t *len)
556{
557 struct short_channel_id_dir scidd;
558 struct amount_msat *min;
559 struct amount_msat *max;
560 u64 timestamp;
561
562 if (fromwire_dstore_channel_constraint(tmpctx, cursor, len,
563 &scidd, &timestamp,
564 &min, &max))
565 add_constraint(layer, &scidd, timestamp, min, max);
566}
567
568static void towire_save_channel_bias(u8 **data, const struct bias *bias)
569{

Callers 1

populate_layerFunction · 0.85

Calls 2

add_constraintFunction · 0.85

Tested by

no test coverage detected