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

Function get_current_node

tests/plugins/channeld_fakenet.c:277–284  ·  view source on GitHub ↗

expected_id is NULL for initial node (aka l2) */

Source from the content-addressed store, hash-verified

275
276/* expected_id is NULL for initial node (aka l2) */
277static struct node *get_current_node(struct info *info,
278 const struct node_id *expected_id)
279{
280 if (!expected_id)
281 return info->peer;
282
283 return node_map_get(info->node_map, expected_id);
284}
285
286static void populate_node_map(const struct gossmap *gossmap,
287 struct node_map *node_map)

Callers 1

forward_htlcFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected