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

Function command_set_usage

lightningd/jsonrpc.c:1419–1426  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1417}
1418
1419void command_set_usage(struct command *cmd, const char *usage TAKES)
1420{
1421 struct cmd_and_usage *cmd_and_usage;
1422
1423 cmd_and_usage = strmap_get(&cmd->ld->jsonrpc->cmdmap, cmd->json_cmd->name);
1424 assert(!cmd_and_usage->usage);
1425 cmd_and_usage->usage = tal_strdup(cmd_and_usage, usage);
1426}
1427
1428bool command_check_only(const struct command *cmd)
1429{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected