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

Function rpc_scan_datastore

plugins/libplugin.c:861–879  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

859}
860
861static const char *rpc_scan_datastore(const tal_t *ctx,
862 struct command *cmd,
863 const char **keys,
864 const char *hex_or_string,
865 va_list ap)
866{
867 const char *guide;
868 struct json_out *params;
869
870 params = json_out_new(NULL);
871 json_out_start(params, NULL, '{');
872 json_add_keypath(params, "key", keys);
873 json_out_end(params, '}');
874 json_out_finished(params);
875
876 guide = tal_fmt(tmpctx, "{datastore:[0:{%s:%%}]}", hex_or_string);
877 return rpc_scan_core(ctx, cmd->plugin, "listdatastore", take(params),
878 guide, ap);
879}
880
881const char *rpc_scan_datastore_str(const tal_t *ctx,
882 struct command *cmd,

Callers 2

rpc_scan_datastore_strFunction · 0.85
rpc_scan_datastore_hexFunction · 0.85

Calls 6

json_out_newFunction · 0.85
json_out_startFunction · 0.85
json_add_keypathFunction · 0.85
json_out_endFunction · 0.85
json_out_finishedFunction · 0.85
rpc_scan_coreFunction · 0.85

Tested by

no test coverage detected