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

Function json_restorefrompeer

plugins/chanbackup.c:997–1008  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

995}
996
997static 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
1010static struct command_result *json_getemergencyrecoverdata(struct command *cmd,
1011 const char *buf,

Callers

nothing calls this directly

Calls 2

command_param_failedFunction · 0.70
paramFunction · 0.50

Tested by

no test coverage detected