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

Function rpc_scan

plugins/libplugin.c:569–585  ·  view source on GitHub ↗

Synchronous routine to send command and extract fields from response */

Source from the content-addressed store, hash-verified

567
568/* Synchronous routine to send command and extract fields from response */
569void rpc_scan(struct plugin *plugin,
570 const char *method,
571 const struct json_out *params TAKES,
572 const char *guide,
573 ...)
574{
575 const char *err;
576 va_list ap;
577
578 va_start(ap, guide);
579 err = rpc_scan_core(tmpctx, plugin, method, params, guide, ap);
580 va_end(ap);
581
582 if (err)
583 plugin_err(plugin, "Could not parse %s in reply to %s: %s",
584 guide, method, err);
585}
586
587static void json_add_keypath(struct json_out *jout, const char *fieldname, const char *path)
588{

Callers 8

initFunction · 0.85
initFunction · 0.85
initFunction · 0.85
initFunction · 0.85
initFunction · 0.85
initFunction · 0.85
initFunction · 0.85

Calls 2

rpc_scan_coreFunction · 0.85
plugin_errFunction · 0.70

Tested by

no test coverage detected