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

Function next_chan

gossipd/routing.c:190–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188}
189
190struct chan *next_chan(const struct node *node, struct chan_map_iter *i)
191{
192 if (!node_uses_chan_map(node)) {
193 i->i.off++;
194 return next_chan_arr(node, i);
195 }
196
197 return chan_map_next(&node->chans.map, i);
198}
199
200static void destroy_routing_state(struct routing_state *rstate)
201{

Callers 7

peer_disable_channelsFunction · 0.85
peer_enable_channelsFunction · 0.85
gossip_refresh_networkFunction · 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