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

Function first_chan

gossipd/routing.c:180–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178}
179
180struct chan *first_chan(const struct node *node, struct chan_map_iter *i)
181{
182 if (!node_uses_chan_map(node)) {
183 i->i.off = 0;
184 return next_chan_arr(node, i);
185 }
186
187 return chan_map_first(&node->chans.map, i);
188}
189
190struct chan *next_chan(const struct node *node, struct chan_map_iter *i)
191{

Callers 8

peer_disable_channelsFunction · 0.85
peer_enable_channelsFunction · 0.85
gossip_refresh_networkFunction · 0.85
destroy_nodeFunction · 0.85
node_has_public_channelsFunction · 0.85

Calls 2

node_uses_chan_mapFunction · 0.85
next_chan_arrFunction · 0.85

Tested by

no test coverage detected