| 859 | } |
| 860 | |
| 861 | static 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 | |
| 881 | const char *rpc_scan_datastore_str(const tal_t *ctx, |
| 882 | struct command *cmd, |
no test coverage detected