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

Function node_add_channel

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

Source from the content-addressed store, hash-verified

305}
306
307static void node_add_channel(struct gossmap_node *node, u32 chanidx)
308{
309 node->num_chans++;
310 node->chan_idxs = realloc(node->chan_idxs,
311 node->num_chans * sizeof(*node->chan_idxs));
312 node->chan_idxs[node->num_chans-1] = chanidx;
313}
314
315static u32 init_chan_arr(struct gossmap_chan *chan_arr, size_t start)
316{

Callers 1

new_channelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected