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

Function rpc_scan

plugins/libplugin.c:833–849  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

831
832/* Synchronous routine to send command and extract fields from response */
833void rpc_scan(struct command *cmd,
834 const char *method,
835 const struct json_out *params TAKES,
836 const char *guide,
837 ...)
838{
839 const char *err;
840 va_list ap;
841
842 va_start(ap, guide);
843 err = rpc_scan_core(tmpctx, cmd->plugin, method, params, guide, ap);
844 va_end(ap);
845
846 if (err)
847 plugin_err(cmd->plugin, "Could not parse %s in reply to %s: %s",
848 guide, method, err);
849}
850
851void json_add_keypath(struct json_out *jout,
852 const char *fieldname,

Callers 10

initFunction · 0.70
initFunction · 0.70
initFunction · 0.70
initFunction · 0.70
initFunction · 0.70
initFunction · 0.70
initFunction · 0.70
initFunction · 0.70
initFunction · 0.70

Calls 2

rpc_scan_coreFunction · 0.85
plugin_errFunction · 0.70

Tested by

no test coverage detected