| 1150 | } |
| 1151 | |
| 1152 | static struct command_result * |
| 1153 | delete_channel_from_datastore(struct command *cmd, |
| 1154 | struct channel_id *cid) |
| 1155 | { |
| 1156 | const struct out_req *req; |
| 1157 | |
| 1158 | /* Fetch out previous utxos from the datastore. |
| 1159 | * If we were clever, we'd have some way of tracking |
| 1160 | * channels that we actually might have data for |
| 1161 | * but this is much easier */ |
| 1162 | req = jsonrpc_request_start(cmd, |
| 1163 | "deldatastore", |
| 1164 | &datastore_del_success, |
| 1165 | &datastore_del_fail, |
| 1166 | NULL); |
| 1167 | json_add_string(req->js, "key", |
| 1168 | tal_fmt(cmd, "funder/%s", |
| 1169 | fmt_channel_id(cmd, cid))); |
| 1170 | return send_outreq(req); |
| 1171 | } |
| 1172 | |
| 1173 | static struct command_result *json_channel_state_changed(struct command *cmd, |
| 1174 | const char *buf, |
no test coverage detected