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

Function next_chan_arr

gossipd/routing.c:169–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169static struct chan *next_chan_arr(const struct node *node,
170 struct chan_map_iter *i)
171{
172 while (i->i.off < NUM_IMMEDIATE_CHANS) {
173 if (node->chans.arr[i->i.off])
174 return node->chans.arr[i->i.off];
175 i->i.off++;
176 }
177 return NULL;
178}
179
180struct chan *first_chan(const struct node *node, struct chan_map_iter *i)
181{

Callers 2

first_chanFunction · 0.85
next_chanFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected