| 468 | } |
| 469 | |
| 470 | static 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 | |
| 489 | static struct command_result *param_escaped_string_array(struct command *cmd, |
| 490 | const char *name, |
nothing calls this directly
no test coverage detected