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

Function init

plugins/exposesecret.c:140–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138}
139
140static const char *init(struct command *init_cmd,
141 const char *buf UNUSED, const jsmntok_t *config UNUSED)
142{
143 struct exposesecret *exposesecret = exposesecret_data(init_cmd->plugin);
144 rpc_scan(init_cmd, "getinfo",
145 take(json_out_obj(NULL, NULL, NULL)),
146 "{id:%,alias:%}",
147 JSON_SCAN(json_to_pubkey, &exposesecret->our_node_id),
148 JSON_SCAN_TAL(exposesecret, json_strdup, &exposesecret->our_node_alias));
149 return NULL;
150}
151
152static const struct plugin_command commands[] = {
153 {

Callers

nothing calls this directly

Calls 3

exposesecret_dataFunction · 0.85
rpc_scanFunction · 0.70
json_out_objFunction · 0.70

Tested by

no test coverage detected