| 616 | AUTODATA(json_command, &invokerune_command); |
| 617 | |
| 618 | static struct command_result *list_blacklist(struct command *cmd, |
| 619 | const struct rune_blacklist *blist) |
| 620 | { |
| 621 | struct json_stream *js = json_stream_success(cmd); |
| 622 | |
| 623 | json_array_start(js, "blacklist"); |
| 624 | for (size_t i = 0; i < tal_count(blist); i++) { |
| 625 | json_object_start(js, NULL); |
| 626 | json_add_u64(js, "start", blist[i].start); |
| 627 | json_add_u64(js, "end", blist[i].end); |
| 628 | json_object_end(js); |
| 629 | } |
| 630 | json_array_end(js); |
| 631 | return command_success(cmd, js); |
| 632 | } |
| 633 | |
| 634 | static struct command_result *json_blacklistrune(struct command *cmd, |
| 635 | const char *buffer, |
no test coverage detected