| 800 | } |
| 801 | |
| 802 | static struct command_result *param_input_numbers(struct command *cmd, |
| 803 | const char *name, |
| 804 | const char *buffer, |
| 805 | const jsmntok_t *tok, |
| 806 | u32 **input_nums) |
| 807 | { |
| 808 | struct command_result *res; |
| 809 | const jsmntok_t *arr, *t; |
| 810 | size_t i; |
| 811 | |
| 812 | res = param_array(cmd, name, buffer, tok, &arr); |
| 813 | if (res) |
| 814 | return res; |
| 815 | |
| 816 | *input_nums = tal_arr(cmd, u32, arr->size); |
| 817 | json_for_each_arr(i, t, arr) { |
| 818 | u32 *num; |
| 819 | res = param_number(cmd, name, buffer, t, &num); |
| 820 | if (res) |
| 821 | return res; |
| 822 | (*input_nums)[i] = *num; |
| 823 | tal_free(num); |
| 824 | } |
| 825 | return NULL; |
| 826 | } |
| 827 | |
| 828 | static struct command_result *json_signpsbt(struct command *cmd, |
| 829 | const char *buffer, |
nothing calls this directly
no test coverage detected