| 869 | } |
| 870 | |
| 871 | static 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 | |
| 891 | const char *rpc_scan_datastore_str(const tal_t *ctx, |
| 892 | struct command *cmd, |
no test coverage detected