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

Function json_connected

tests/plugins/test_libplugin.c:96–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96static struct command_result *json_connected(struct command *cmd,
97 const char *buf,
98 const jsmntok_t *params)
99{
100 const jsmntok_t *connecttok, *idtok;
101
102 connecttok = json_get_member(buf, params, "connect");
103 assert(connecttok);
104 idtok = json_get_member(buf, connecttok, "id");
105 assert(idtok);
106 plugin_log(cmd->plugin, LOG_INFORM, "%s connected",
107 json_strdup(tmpctx, buf, idtok));
108 return notification_handled(cmd);
109}
110
111static struct command_result *json_shutdown(struct command *cmd,
112 const char *buf,

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected