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

Function new_node

common/gossmap.c:313–322  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

add_channelFunction · 0.70

Calls 2

next_free_nodeFunction · 0.85
gossmap_node_idxFunction · 0.85

Tested by

no test coverage detected