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

Function json_stop

lightningd/jsonrpc.c:209–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207}
208
209static struct command_result *json_stop(struct command *cmd,
210 const char *buffer,
211 const jsmntok_t *obj UNNEEDED,
212 const jsmntok_t *params)
213{
214 if (!param(cmd, buffer, params, NULL))
215 return command_param_failed();
216
217 log_unusual(cmd->ld->log, "JSON-RPC shutdown");
218 return prepare_stop_conn(cmd, "Shutdown complete");
219}
220
221static const struct json_command stop_command = {
222 "stop",

Callers

nothing calls this directly

Calls 3

prepare_stop_connFunction · 0.85
command_param_failedFunction · 0.70
paramFunction · 0.50

Tested by

no test coverage detected