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

Function init_chan_arr

common/gossmap.c:351–361  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

349}
350
351static u32 init_chan_arr(struct gossmap_chan *chan_arr, size_t start)
352{
353 size_t i;
354 for (i = start; i < tal_count(chan_arr) - 1; i++) {
355 chan_arr[i].cann_off = i + 1;
356 chan_arr[i].plus_scid_off = 0;
357 }
358 chan_arr[i].cann_off = UINT_MAX;
359 chan_arr[i].plus_scid_off = 0;
360 return start;
361}
362
363/* Freelist links through scid of unused entries. */
364static 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