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

Function init_node_arr

common/gossmap.c:279–290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

277}
278
279static u32 init_node_arr(struct gossmap_node *node_arr, size_t start)
280{
281 size_t i;
282 for (i = start; i < tal_count(node_arr) - 1; i++) {
283 node_arr[i].nann_off = i + 1;
284 node_arr[i].chan_idxs = NULL;
285 }
286 node_arr[i].nann_off = UINT_MAX;
287 node_arr[i].chan_idxs = NULL;
288
289 return start;
290}
291
292/* Freelist links through node_off of unused entries. */
293static 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