| 995 | } |
| 996 | |
| 997 | static struct command_result *json_restorefrompeer(struct command *cmd, |
| 998 | const char *buf, |
| 999 | const jsmntok_t *params) |
| 1000 | { |
| 1001 | if (!param(cmd, buf, params, NULL)) |
| 1002 | return command_param_failed(); |
| 1003 | |
| 1004 | return jsonrpc_get_datastore_binary(cmd, |
| 1005 | mkdatastorekey(tmpctx, "chanbackup", "latestscb"), |
| 1006 | after_latestscb, |
| 1007 | NULL); |
| 1008 | } |
| 1009 | |
| 1010 | static struct command_result *json_getemergencyrecoverdata(struct command *cmd, |
| 1011 | const char *buf, |
nothing calls this directly
no test coverage detected