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

Function new_node

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

Source from the content-addressed store, hash-verified

282}
283
284static u32 new_node(struct gossmap *map)
285{
286 struct gossmap_node *node = next_free_node(map);
287
288 assert(node->chan_idxs == NULL);
289 node->nann_off = 0;
290 node->num_chans = 0;
291
292 return gossmap_node_idx(map, node);
293}
294
295static void remove_node(struct gossmap *map, struct gossmap_node *node)
296{

Callers 1

add_channelFunction · 0.70

Calls 2

next_free_nodeFunction · 0.85
gossmap_node_idxFunction · 0.85

Tested by

no test coverage detected