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

Function node_add_channel

common/gossmap.c:340–346  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

new_channelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected