| 1186 | } |
| 1187 | |
| 1188 | static struct command_result *splice_signed_error_pkg(struct command *cmd, |
| 1189 | const char *methodname, |
| 1190 | const char *buf, |
| 1191 | const jsmntok_t *error, |
| 1192 | struct splice_index_pkg *pkg) |
| 1193 | { |
| 1194 | struct splice_cmd *splice_cmd = pkg->splice_cmd; |
| 1195 | struct abort_pkg *abort_pkg; |
| 1196 | |
| 1197 | splice_cmd->wetrun = false; |
| 1198 | |
| 1199 | abort_pkg = tal(cmd->plugin, struct abort_pkg); |
| 1200 | abort_pkg->splice_cmd = tal_steal(abort_pkg, pkg->splice_cmd); |
| 1201 | abort_pkg->str = tal_strndup(abort_pkg, buf + error->start, |
| 1202 | error->end - error->start); |
| 1203 | abort_pkg->code = -1; |
| 1204 | |
| 1205 | tal_free(pkg); |
| 1206 | |
| 1207 | return make_error(cmd, abort_pkg, "splice_signed_error"); |
| 1208 | } |
| 1209 | |
| 1210 | static struct command_result *splice_signed(struct command *cmd, |
| 1211 | struct splice_cmd *splice_cmd, |
nothing calls this directly
no test coverage detected