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

Function rpc_scan_core

plugins/libplugin.c:818–830  ·  view source on GitHub ↗

Returns contents of scanning guide on 'result' */

Source from the content-addressed store, hash-verified

816
817/* Returns contents of scanning guide on 'result' */
818static const char *rpc_scan_core(const tal_t *ctx,
819 struct plugin *plugin,
820 const char *method,
821 const struct json_out *params TAKES,
822 const char *guide,
823 va_list ap)
824{
825 const jsmntok_t *contents;
826 const char *p;
827
828 contents = sync_req(tmpctx, plugin, method, params, &p);
829 return json_scanv(ctx, p, contents, guide, ap);
830}
831
832/* Synchronous routine to send command and extract fields from response */
833void 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