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

Function rpc_scan_datastore

plugins/libplugin.c:871–889  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

869}
870
871static const char *rpc_scan_datastore(const tal_t *ctx,
872 struct command *cmd,
873 const char **keys,
874 const char *hex_or_string,
875 va_list ap)
876{
877 const char *guide;
878 struct json_out *params;
879
880 params = json_out_new(NULL);
881 json_out_start(params, NULL, '{');
882 json_add_keypath(params, "key", keys);
883 json_out_end(params, '}');
884 json_out_finished(params);
885
886 guide = tal_fmt(tmpctx, "{datastore:[0:{%s:%%}]}", hex_or_string);
887 return rpc_scan_core(ctx, cmd->plugin, "listdatastore", take(params),
888 guide, ap);
889}
890
891const char *rpc_scan_datastore_str(const tal_t *ctx,
892 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