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

Function node_uses_chan_map

gossipd/routing.c:135–140  ·  view source on GitHub ↗

We use a simple array (with NULL entries) until we have too many. */

Source from the content-addressed store, hash-verified

133
134/* We use a simple array (with NULL entries) until we have too many. */
135static bool node_uses_chan_map(const struct node *node)
136{
137 /* This is a layering violation: last entry in htable is the table ptr,
138 * which is never NULL */
139 return node->chans.arr[NUM_IMMEDIATE_CHANS] != NULL;
140}
141
142/* When simple array fills, use a htable. */
143static void convert_node_to_chan_map(struct node *node)

Callers 8

convert_node_to_chan_mapFunction · 0.85
add_chanFunction · 0.85
first_chanFunction · 0.85
next_chanFunction · 0.85
destroy_nodeFunction · 0.85
remove_chan_from_nodeFunction · 0.85
remove_all_gossipFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected