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

Function init_chan_arr

common/gossmap.c:348–358  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

346}
347
348static u32 init_chan_arr(struct gossmap_chan *chan_arr, size_t start)
349{
350 size_t i;
351 for (i = start; i < tal_count(chan_arr) - 1; i++) {
352 chan_arr[i].cann_off = i + 1;
353 chan_arr[i].plus_scid_off = 0;
354 }
355 chan_arr[i].cann_off = UINT_MAX;
356 chan_arr[i].plus_scid_off = 0;
357 return start;
358}
359
360/* Freelist links through scid of unused entries. */
361static struct gossmap_chan *next_free_chan(struct gossmap *map)

Callers 2

next_free_chanFunction · 0.85
init_map_structsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected