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

Function after_restorefrompeer

plugins/recover.c:78–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78static struct command_result *after_restorefrompeer(struct command *cmd,
79 const char *method,
80 const char *buf,
81 const jsmntok_t *params,
82 void *cb_arg UNUSED)
83{
84 plugin_log(plugin, LOG_DBG, "restorefrompeer called");
85
86 peer_storage_timer =
87 global_timer(plugin,
88 time_from_sec(CHECK_STORAGE_INTERVAL),
89 do_find_peer_storage, NULL);
90 return timer_complete(cmd);
91}
92
93static struct command_result *find_peer_storage (struct command *cmd)
94{

Callers

nothing calls this directly

Calls 3

time_from_secFunction · 0.85
timer_completeFunction · 0.85
plugin_logFunction · 0.70

Tested by

no test coverage detected