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

Function chan_iter

common/gossmap.c:1585–1592  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1583}
1584
1585static struct gossmap_chan *chan_iter(const struct gossmap *map, size_t start)
1586{
1587 for (size_t i = start; i < map->num_chan_arr; i++) {
1588 if (map->chan_arr[i].plus_scid_off != 0)
1589 return &map->chan_arr[i];
1590 }
1591 return NULL;
1592}
1593
1594struct gossmap_chan *gossmap_first_chan(const struct gossmap *map)
1595{

Callers 2

gossmap_first_chanFunction · 0.85
gossmap_next_chanFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected