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

Function json_shutdown

tests/plugins/test_libplugin.c:64–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64static struct command_result *json_shutdown(struct command *cmd,
65 const char *buf,
66 const jsmntok_t *params)
67{
68 plugin_log(cmd->plugin, LOG_DBG, "shutdown called");
69
70 if (dont_shutdown)
71 return notification_handled(cmd);
72
73 plugin_exit(cmd->plugin, 0);
74}
75
76static struct command_result *testrpc_cb(struct command *cmd,
77 const char *buf,

Callers

nothing calls this directly

Calls 3

notification_handledFunction · 0.85
plugin_exitFunction · 0.85
plugin_logFunction · 0.50

Tested by

no test coverage detected