Cleans up a `fundchannel_start` by doing `fundchannel_cancel` on the node. */
| 214 | the node. |
| 215 | */ |
| 216 | static void |
| 217 | mfc_cleanup_fc(struct command *cmd, |
| 218 | struct multifundchannel_cleanup *cleanup, |
| 219 | struct multifundchannel_destination *dest) |
| 220 | { |
| 221 | struct out_req *req = jsonrpc_request_start(cmd->plugin, |
| 222 | cmd, |
| 223 | "fundchannel_cancel", |
| 224 | &mfc_cleanup_done, |
| 225 | &mfc_cleanup_done, |
| 226 | cleanup); |
| 227 | json_add_node_id(req->js, "id", &dest->id); |
| 228 | |
| 229 | send_outreq(cmd->plugin, req); |
| 230 | } |
| 231 | |
| 232 | /* Core cleanup function. */ |
| 233 | static struct command_result * |
no test coverage detected