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

Function json_connected

tests/plugins/test_libplugin.c:53–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53static struct command_result *json_connected(struct command *cmd,
54 const char *buf,
55 const jsmntok_t *params)
56{
57 const jsmntok_t *idtok = json_get_member(buf, params, "id");
58 assert(idtok);
59 plugin_log(cmd->plugin, LOG_INFORM, "%s connected",
60 json_strdup(tmpctx, buf, idtok));
61 return notification_handled(cmd);
62}
63
64static struct command_result *json_shutdown(struct command *cmd,
65 const char *buf,

Callers

nothing calls this directly

Calls 4

notification_handledFunction · 0.85
json_get_memberFunction · 0.50
plugin_logFunction · 0.50
json_strdupFunction · 0.50

Tested by

no test coverage detected