| 868 | }; |
| 869 | |
| 870 | static struct command_result *do_edit_desc(struct command *cmd, |
| 871 | struct edit_desc_info *info) |
| 872 | { |
| 873 | struct json_stream *res; |
| 874 | struct chain_event **chain_events; |
| 875 | struct bkpr *bkpr = bkpr_of(cmd->plugin); |
| 876 | |
| 877 | add_utxo_description(cmd, bkpr, info->outpoint, info->new_desc); |
| 878 | chain_events = get_chain_events_by_outpoint(cmd, bkpr, cmd, info->outpoint); |
| 879 | |
| 880 | res = jsonrpc_stream_success(cmd); |
| 881 | json_array_start(res, "updated"); |
| 882 | json_add_events(res, bkpr, NULL, chain_events, NULL); |
| 883 | json_array_end(res); |
| 884 | |
| 885 | return command_finished(cmd, res); |
| 886 | } |
| 887 | |
| 888 | static struct command_result *json_edit_desc_utxo(struct command *cmd, |
| 889 | const char *buf, |
nothing calls this directly
no test coverage detected