| 148 | } |
| 149 | |
| 150 | static struct command_result *abort_get_result(struct command *cmd, |
| 151 | const char *methodname, |
| 152 | const char *buf, |
| 153 | const jsmntok_t *result, |
| 154 | struct abort_pkg *abort_pkg) |
| 155 | { |
| 156 | struct out_req *req; |
| 157 | struct splice_cmd *splice_cmd = abort_pkg->splice_cmd; |
| 158 | |
| 159 | plugin_log(cmd->plugin, LOG_DBG, |
| 160 | "unreserveinputs(psbt:%p)", splice_cmd->psbt); |
| 161 | |
| 162 | if (!splice_cmd->psbt) |
| 163 | return make_error(cmd, abort_pkg, "abort_get_result"); |
| 164 | |
| 165 | req = jsonrpc_request_start(cmd, "unreserveinputs", |
| 166 | unreserve_get_result, forward_error, |
| 167 | abort_pkg); |
| 168 | |
| 169 | json_add_psbt(req->js, "psbt", splice_cmd->psbt); |
| 170 | |
| 171 | return send_outreq(req); |
| 172 | } |
| 173 | |
| 174 | static struct command_result *do_fail(struct command *cmd, |
| 175 | struct splice_cmd *splice_cmd, |
no test coverage detected