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

Function canonical_method

lightningd/runes.c:1004–1011  ·  view source on GitHub ↗

invokerune and destroyrune are aliases - a rune must see the command that actually runs, or "method/createrune" is bypassed by the alias */

Source from the content-addressed store, hash-verified

1002
1003/* invokerune and destroyrune are aliases - a rune must see the command that actually runs, or "method/createrune" is bypassed by the alias */
1004static const char *canonical_method(const char *method)
1005{
1006 if (method && streq(method, "invokerune"))
1007 return "createrune";
1008 if (method && streq(method, "destroyrune"))
1009 return "blacklistrune";
1010 return method;
1011}
1012
1013static struct command_result *json_checkrune(struct command *cmd,
1014 const char *buffer,

Callers 1

json_checkruneFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected