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

Function json_channel_apy

plugins/bkpr/bookkeeper.c:405–419  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

403}
404
405static struct command_result *json_channel_apy(struct command *cmd,
406 const char *buf,
407 const jsmntok_t *params)
408{
409 struct apy_req *apyreq = tal(cmd, struct apy_req);
410
411 if (!param(cmd, buf, params,
412 p_opt_def("start_time", param_u64, &apyreq->start_time, 0),
413 p_opt_def("end_time", param_u64, &apyreq->end_time,
414 SQLITE_MAX_UINT),
415 NULL))
416 return command_param_failed();
417
418 return refresh_moves(cmd, do_channel_apy, apyreq);
419}
420
421static struct command_result *param_csv_format(struct command *cmd, const char *name,
422 const char *buffer, const jsmntok_t *tok,

Callers

nothing calls this directly

Calls 2

paramFunction · 0.50
command_param_failedFunction · 0.50

Tested by

no test coverage detected