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

Function add_layer

plugins/askrene/askrene.c:414–427  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

412};
413
414static void add_layer(const struct layer ***layers,
415 const struct layer *l,
416 const struct gossmap *gossmap,
417 struct gossmap_localmods *localmods,
418 fp16_t *capacities)
419{
420 tal_arr_expand(layers, l);
421 /* FIXME: Implement localmods_merge, and cache this in layer? */
422 layer_add_localmods(l, gossmap, localmods);
423
424 /* Clear any entries in capacities array if we
425 * override them (incl local channels) */
426 layer_clear_overridden_capacities(l, gossmap, capacities);
427}
428
429/* Gather layers, clear capacities where layers contains info */
430static const struct layer **apply_layers(const tal_t *ctx,

Callers 2

apply_layersFunction · 0.70
do_getroutesFunction · 0.70

Calls 2

layer_add_localmodsFunction · 0.85

Tested by

no test coverage detected