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

Function node_add_channel

common/gossmap.c:343–349  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

341}
342
343static void node_add_channel(struct gossmap_node *node, u32 chanidx)
344{
345 node->num_chans++;
346 node->chan_idxs = realloc(node->chan_idxs,
347 node->num_chans * sizeof(*node->chan_idxs));
348 node->chan_idxs[node->num_chans-1] = chanidx;
349}
350
351static u32 init_chan_arr(struct gossmap_chan *chan_arr, size_t start)
352{

Callers 1

new_channelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected