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

Function json_memdump

lightningd/memdump.c:70–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70static struct command_result *json_memdump(struct command *cmd,
71 const char *buffer,
72 const jsmntok_t *obj UNNEEDED,
73 const jsmntok_t *params)
74{
75 struct json_stream *response;
76
77 if (!param(cmd, buffer, params, NULL))
78 return command_param_failed();
79
80 response = json_stream_success(cmd);
81 add_memdump(response, "memdump", NULL, cmd);
82
83 return command_success(cmd, response);
84}
85
86static const struct json_command dev_memdump_command = {
87 "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