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

Function age_layer

plugins/xpay/xpay.c:3240–3250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3238}
3239
3240static struct command_result *age_layer(struct command *timer_cmd, void *unused)
3241{
3242 struct out_req *req;
3243 req = jsonrpc_request_start(timer_cmd, "askrene-age",
3244 age_done,
3245 plugin_broken_cb,
3246 NULL);
3247 json_add_string(req->js, "layer", "xpay");
3248 json_add_u64(req->js, "cutoff", clock_time().ts.tv_sec - 3600);
3249 return send_outreq(req);
3250}
3251
3252static void start_aging_timer(struct plugin *plugin)
3253{

Callers

nothing calls this directly

Calls 4

json_add_u64Function · 0.85
clock_timeFunction · 0.85
json_add_stringFunction · 0.50
send_outreqFunction · 0.50

Tested by

no test coverage detected