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

Function json_dump_income

plugins/bkpr/bookkeeper.c:470–487  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

468}
469
470static struct command_result *json_dump_income(struct command *cmd,
471 const char *buf,
472 const jsmntok_t *params)
473{
474 struct dump_income_info *info = tal(cmd, struct dump_income_info);
475
476 if (!param(cmd, buf, params,
477 p_req("csv_format", param_csv_format, &info->csv_fmt),
478 p_opt("csv_file", param_string, &info->filename),
479 p_opt_def("consolidate_fees", param_bool,
480 &info->consolidate_fees, true),
481 p_opt_def("start_time", param_u64, &info->start_time, 0),
482 p_opt_def("end_time", param_u64, &info->end_time, SQLITE_MAX_UINT),
483 NULL))
484 return command_param_failed();
485
486 return refresh_moves(cmd, do_dump_income, info);
487}
488
489static struct command_result *param_escaped_string_array(struct command *cmd,
490 const char *name,

Callers

nothing calls this directly

Calls 2

paramFunction · 0.50
command_param_failedFunction · 0.50

Tested by

no test coverage detected