| 217 | } |
| 218 | |
| 219 | static struct command_result *after_recover_rpc(struct command *cmd, |
| 220 | const char *buf, |
| 221 | const jsmntok_t *params, |
| 222 | void *cb_arg UNUSED) |
| 223 | { |
| 224 | |
| 225 | size_t i; |
| 226 | const jsmntok_t *t; |
| 227 | struct json_stream *response; |
| 228 | |
| 229 | response = jsonrpc_stream_success(cmd); |
| 230 | |
| 231 | json_for_each_obj(i, t, params) |
| 232 | json_add_tok(response, json_strdup(tmpctx, buf, t), t+1, buf); |
| 233 | |
| 234 | return command_finished(cmd, response); |
| 235 | } |
| 236 | |
| 237 | /* Recovers the channels by making RPC to `recoverchannel` */ |
| 238 | static struct command_result *json_emergencyrecover(struct command *cmd, |
nothing calls this directly
no test coverage detected