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

Function get_beglist

plugins/libplugin.c:1511–1530  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1509}
1510
1511static struct command_result *get_beglist(struct command *aux_cmd,
1512 const char *method,
1513 const char *buf,
1514 const jsmntok_t *result,
1515 void *unused)
1516{
1517 struct plugin *plugin = aux_cmd->plugin;
1518 const char *err;
1519
1520 err = json_scan(tmpctx, buf, result,
1521 "{configs:{i-promise-to-fix-broken-api-user:{values_str:%}}}",
1522 JSON_SCAN_TAL(plugin, json_to_apilist, &plugin->beglist));
1523 if (err)
1524 plugin_err(aux_cmd->plugin, "bad listconfigs '%.*s': %s",
1525 json_tok_full_len(result),
1526 json_tok_full(buf, result),
1527 err);
1528
1529 return aux_command_done(aux_cmd);
1530}
1531
1532static struct command_result *handle_init(struct command *cmd,
1533 const char *buf,

Callers

nothing calls this directly

Calls 5

aux_command_doneFunction · 0.85
plugin_errFunction · 0.70
json_scanFunction · 0.50
json_tok_full_lenFunction · 0.50
json_tok_fullFunction · 0.50

Tested by

no test coverage detected