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

Function new_node

common/gossmap.c:310–319  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

308}
309
310static u32 new_node(struct gossmap *map)
311{
312 struct gossmap_node *node = next_free_node(map);
313
314 assert(node->chan_idxs == NULL);
315 node->nann_off = 0;
316 node->num_chans = 0;
317
318 return gossmap_node_idx(map, node);
319}
320
321static void remove_node(struct gossmap *map, struct gossmap_node *node)
322{

Callers 1

add_channelFunction · 0.70

Calls 2

next_free_nodeFunction · 0.85
gossmap_node_idxFunction · 0.85

Tested by

no test coverage detected