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

Function init_node_arr

common/gossmap.c:282–293  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

280}
281
282static u32 init_node_arr(struct gossmap_node *node_arr, size_t start)
283{
284 size_t i;
285 for (i = start; i < tal_count(node_arr) - 1; i++) {
286 node_arr[i].nann_off = i + 1;
287 node_arr[i].chan_idxs = NULL;
288 }
289 node_arr[i].nann_off = UINT_MAX;
290 node_arr[i].chan_idxs = NULL;
291
292 return start;
293}
294
295/* Freelist links through node_off of unused entries. */
296static struct gossmap_node *next_free_node(struct gossmap *map)

Callers 2

next_free_nodeFunction · 0.85
init_map_structsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected