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

Function init_node_arr

common/gossmap.c:253–264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

251}
252
253static u32 init_node_arr(struct gossmap_node *node_arr, size_t start)
254{
255 size_t i;
256 for (i = start; i < tal_count(node_arr) - 1; i++) {
257 node_arr[i].nann_off = i + 1;
258 node_arr[i].chan_idxs = NULL;
259 }
260 node_arr[i].nann_off = UINT_MAX;
261 node_arr[i].chan_idxs = NULL;
262
263 return start;
264}
265
266/* Freelist links through node_off of unused entries. */
267static struct gossmap_node *next_free_node(struct gossmap *map)

Callers 2

next_free_nodeFunction · 0.85
load_gossip_storeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected