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

Function json_memdump

lightningd/memdump.c:67–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67static struct command_result *json_memdump(struct command *cmd,
68 const char *buffer,
69 const jsmntok_t *obj UNNEEDED,
70 const jsmntok_t *params)
71{
72 struct json_stream *response;
73
74 if (!param(cmd, buffer, params, NULL))
75 return command_param_failed();
76
77 response = json_stream_success(cmd);
78 add_memdump(response, "memdump", NULL, cmd);
79
80 return command_success(cmd, response);
81}
82
83static const struct json_command dev_memdump_command = {
84 "dev-memdump",

Callers

nothing calls this directly

Calls 5

add_memdumpFunction · 0.85
command_param_failedFunction · 0.70
json_stream_successFunction · 0.70
command_successFunction · 0.70
paramFunction · 0.50

Tested by

no test coverage detected