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

Function have_layer

plugins/askrene/askrene.c:56–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54};
55
56static bool have_layer(const char **layers, const char *name)
57{
58 for (size_t i = 0; i < tal_count(layers); i++) {
59 if (streq(layers[i], name))
60 return true;
61 }
62 return false;
63}
64
65/* A direction, either "in" or "out", internally handled as a boolean. */
66static 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