| 1208 | } |
| 1209 | |
| 1210 | static struct command_result *splice_signed(struct command *cmd, |
| 1211 | struct splice_cmd *splice_cmd, |
| 1212 | size_t index) |
| 1213 | { |
| 1214 | struct splice_script_result *action = splice_cmd->actions[index]; |
| 1215 | struct out_req *req; |
| 1216 | struct splice_index_pkg *pkg; |
| 1217 | |
| 1218 | pkg = tal(cmd->plugin, struct splice_index_pkg); |
| 1219 | pkg->splice_cmd = splice_cmd; |
| 1220 | pkg->index = index; |
| 1221 | |
| 1222 | req = jsonrpc_request_start(cmd, "splice_signed", |
| 1223 | splice_signed_get_result, |
| 1224 | splice_signed_error_pkg, |
| 1225 | pkg); |
| 1226 | |
| 1227 | json_add_channel_id(req->js, "channel_id", action->channel_id); |
| 1228 | json_add_psbt(req->js, "psbt", splice_cmd->psbt); |
| 1229 | |
| 1230 | return send_outreq(req); |
| 1231 | } |
| 1232 | |
| 1233 | static struct command_result *check_emergency_sat(struct command *cmd, |
| 1234 | struct splice_cmd *splice_cmd) |
no test coverage detected