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

Function destroy_json_command

lightningd/jsonrpc.c:1300–1307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1298}
1299
1300static void destroy_json_command(struct json_command *command, struct jsonrpc *rpc)
1301{
1302 struct cmd_and_usage *cmd;
1303
1304 if (!strmap_del(&rpc->cmdmap, command->name, &cmd))
1305 abort();
1306 tal_free(cmd);
1307}
1308
1309static struct cmd_and_usage *command_add(struct jsonrpc *rpc, struct json_command *command)
1310{

Callers

nothing calls this directly

Calls 2

abortFunction · 0.85
tal_freeFunction · 0.85

Tested by

no test coverage detected