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

Function init_chan_arr

common/gossmap.c:315–325  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

313}
314
315static u32 init_chan_arr(struct gossmap_chan *chan_arr, size_t start)
316{
317 size_t i;
318 for (i = start; i < tal_count(chan_arr) - 1; i++) {
319 chan_arr[i].cann_off = i + 1;
320 chan_arr[i].plus_scid_off = 0;
321 }
322 chan_arr[i].cann_off = UINT_MAX;
323 chan_arr[i].plus_scid_off = 0;
324 return start;
325}
326
327/* Freelist links through scid of unused entries. */
328static struct gossmap_chan *next_free_chan(struct gossmap *map)

Callers 2

next_free_chanFunction · 0.85
load_gossip_storeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected