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

Function json_bkpr_report

plugins/bkpr/bookkeeper.c:537–553  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

535}
536
537static struct command_result *json_bkpr_report(struct command *cmd,
538 const char *buf,
539 const jsmntok_t *params)
540{
541 struct report_info *info = tal(cmd, struct report_info);
542
543 if (!param(cmd, buf, params,
544 p_req("format", param_report_format, &info->format),
545 p_opt("headers", param_escaped_string_array, &info->headers),
546 p_opt_def("escape", param_escape_format, &info->escapes, REPORT_FMT_NONE),
547 p_opt_def("start_time", param_u64, &info->start_time, 0),
548 p_opt_def("end_time", param_u64, &info->end_time, SQLITE_MAX_UINT),
549 NULL))
550 return command_param_failed();
551
552 return refresh_moves(cmd, do_bkpr_report, info);
553}
554
555struct list_income_info {
556 bool *consolidate_fees;

Callers

nothing calls this directly

Calls 2

paramFunction · 0.50
command_param_failedFunction · 0.50

Tested by

no test coverage detected