| 844 | }; |
| 845 | |
| 846 | static struct command_result *do_edit_desc(struct command *cmd, |
| 847 | struct edit_desc_info *info) |
| 848 | { |
| 849 | struct json_stream *res; |
| 850 | struct chain_event **chain_events; |
| 851 | struct bkpr *bkpr = bkpr_of(cmd->plugin); |
| 852 | |
| 853 | add_utxo_description(cmd, bkpr, info->outpoint, info->new_desc); |
| 854 | chain_events = get_chain_events_by_outpoint(cmd, bkpr, cmd, info->outpoint); |
| 855 | |
| 856 | res = jsonrpc_stream_success(cmd); |
| 857 | json_array_start(res, "updated"); |
| 858 | json_add_events(res, bkpr, NULL, chain_events, NULL); |
| 859 | json_array_end(res); |
| 860 | |
| 861 | return command_finished(cmd, res); |
| 862 | } |
| 863 | |
| 864 | static struct command_result *json_edit_desc_utxo(struct command *cmd, |
| 865 | const char *buf, |
nothing calls this directly
no test coverage detected