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

Function rpc_scan_core

plugins/libplugin.c:828–840  ·  view source on GitHub ↗

Returns contents of scanning guide on 'result' */

Source from the content-addressed store, hash-verified

826
827/* Returns contents of scanning guide on 'result' */
828static const char *rpc_scan_core(const tal_t *ctx,
829 struct plugin *plugin,
830 const char *method,
831 const struct json_out *params TAKES,
832 const char *guide,
833 va_list ap)
834{
835 const jsmntok_t *contents;
836 const char *p;
837
838 contents = sync_req(tmpctx, plugin, method, params, &p);
839 return json_scanv(ctx, p, contents, guide, ap);
840}
841
842/* Synchronous routine to send command and extract fields from response */
843void rpc_scan(struct command *cmd,

Callers 2

rpc_scanFunction · 0.85
rpc_scan_datastoreFunction · 0.85

Calls 2

sync_reqFunction · 0.85
json_scanvFunction · 0.85

Tested by

no test coverage detected