| 412 | }; |
| 413 | |
| 414 | static 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 */ |
| 430 | static const struct layer **apply_layers(const tal_t *ctx, |
no test coverage detected