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

Function rpc_scan_core

plugins/libplugin.c:554–566  ·  view source on GitHub ↗

Returns contents of scanning guide on 'result' */

Source from the content-addressed store, hash-verified

552
553/* Returns contents of scanning guide on 'result' */
554static const char *rpc_scan_core(const tal_t *ctx,
555 struct plugin *plugin,
556 const char *method,
557 const struct json_out *params TAKES,
558 const char *guide,
559 va_list ap)
560{
561 const jsmntok_t *contents;
562 const char *p;
563
564 contents = sync_req(tmpctx, plugin, method, params, &p);
565 return json_scanv(ctx, p, contents, guide, ap);
566}
567
568/* Synchronous routine to send command and extract fields from response */
569void rpc_scan(struct plugin *plugin,

Callers 2

rpc_scanFunction · 0.85
rpc_scan_datastoreFunction · 0.85

Calls 2

sync_reqFunction · 0.85
json_scanvFunction · 0.50

Tested by

no test coverage detected