| 4140 | AUTODATA(json_command, &dev_sign_last_tx); |
| 4141 | |
| 4142 | static struct command_result *json_dev_fail(struct command *cmd, |
| 4143 | const char *buffer, |
| 4144 | const jsmntok_t *obj UNNEEDED, |
| 4145 | const jsmntok_t *params) |
| 4146 | { |
| 4147 | struct channel *channel; |
| 4148 | |
| 4149 | if (!param(cmd, buffer, params, |
| 4150 | p_req("id", param_dev_channel, &channel), |
| 4151 | NULL)) |
| 4152 | return command_param_failed(); |
| 4153 | |
| 4154 | channel_fail_permanent(channel, |
| 4155 | REASON_USER, |
| 4156 | "Failing due to dev-fail command"); |
| 4157 | return command_success(cmd, json_stream_success(cmd)); |
| 4158 | } |
| 4159 | |
| 4160 | static const struct json_command dev_fail_command = { |
| 4161 | "dev-fail", |
nothing calls this directly
no test coverage detected