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

Function have_layer

plugins/askrene/askrene.c:58–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56};
57
58static bool have_layer(const char **layers, const char *name)
59{
60 for (size_t i = 0; i < tal_count(layers); i++) {
61 if (streq(layers[i], name))
62 return true;
63 }
64 return false;
65}
66
67/* A direction, either "in" or "out", internally handled as a boolean. */
68static struct command_result *param_direction(struct command *cmd,

Callers 2

do_getroutesFunction · 0.85
begin_requestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected