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

Function after_recover_rpc

plugins/chanbackup.c:219–235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217}
218
219static 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` */
238static struct command_result *json_emergencyrecover(struct command *cmd,

Callers

nothing calls this directly

Calls 4

json_add_tokFunction · 0.85
jsonrpc_stream_successFunction · 0.70
command_finishedFunction · 0.70
json_strdupFunction · 0.50

Tested by

no test coverage detected