| 3238 | } |
| 3239 | |
| 3240 | static 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 | |
| 3252 | static void start_aging_timer(struct plugin *plugin) |
| 3253 | { |
nothing calls this directly
no test coverage detected