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

Function gossmap_nth_node

common/gossmap.c:1051–1058  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1049}
1050
1051struct gossmap_node *gossmap_nth_node(const struct gossmap *map,
1052 const struct gossmap_chan *chan,
1053 int n)
1054{
1055 assert(n == 0 || n == 1);
1056
1057 return map->node_arr + chan->half[n].nodeidx;
1058}
1059
1060size_t gossmap_num_nodes(const struct gossmap *map)
1061{

Callers 11

dijkstra_Function · 0.85
dijkstra_to_hopsFunction · 0.85
gossmap_remove_chanFunction · 0.85
can_carry_onionmsgFunction · 0.85
dst_is_excludedFunction · 0.85
can_carryFunction · 0.85
json_add_halfchanFunction · 0.85
json_listincomingFunction · 0.85
visitFunction · 0.85
visitFunction · 0.85
measure_least_costFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected