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

Function json_shutdown

tests/plugins/test_libplugin.c:111–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111static struct command_result *json_shutdown(struct command *cmd,
112 const char *buf,
113 const jsmntok_t *params)
114{
115 struct test_libplugin *tlp = get_test_libplugin(cmd->plugin);
116 plugin_log(cmd->plugin, LOG_DBG, "shutdown called");
117
118 if (tlp->dont_shutdown)
119 return notification_handled(cmd);
120
121 plugin_exit(cmd->plugin, 0);
122}
123
124static struct command_result *json_all_notifs(struct command *cmd,
125 const char *buf,

Callers

nothing calls this directly

Calls 4

get_test_libpluginFunction · 0.85
plugin_exitFunction · 0.85
plugin_logFunction · 0.50
notification_handledFunction · 0.50

Tested by

no test coverage detected