| 1113 | } |
| 1114 | |
| 1115 | static struct command_result * |
| 1116 | delete_channel_from_datastore(struct command *cmd, |
| 1117 | struct channel_id *cid) |
| 1118 | { |
| 1119 | const struct out_req *req; |
| 1120 | |
| 1121 | /* Fetch out previous utxos from the datastore. |
| 1122 | * If we were clever, we'd have some way of tracking |
| 1123 | * channels that we actually might have data for |
| 1124 | * but this is much easier */ |
| 1125 | req = jsonrpc_request_start(cmd, |
| 1126 | "deldatastore", |
| 1127 | &datastore_del_success, |
| 1128 | &datastore_del_fail, |
| 1129 | NULL); |
| 1130 | json_add_string(req->js, "key", |
| 1131 | tal_fmt(cmd, "funder/%s", |
| 1132 | fmt_channel_id(cmd, cid))); |
| 1133 | return send_outreq(req); |
| 1134 | } |
| 1135 | |
| 1136 | static struct command_result *json_channel_state_changed(struct command *cmd, |
| 1137 | const char *buf, |
no test coverage detected