| 173 | } |
| 174 | |
| 175 | static struct command_result * |
| 176 | datastore_add_fail(struct command *cmd, |
| 177 | const char *method, |
| 178 | const char *buf, |
| 179 | const jsmntok_t *error, |
| 180 | struct wally_psbt *signed_psbt) |
| 181 | { |
| 182 | /* Oops, something's broken */ |
| 183 | plugin_log(cmd->plugin, LOG_BROKEN, |
| 184 | "%s failed: %.*s", |
| 185 | method, json_tok_full_len(error), |
| 186 | json_tok_full(buf, error)); |
| 187 | |
| 188 | return command_hook_cont_psbt(cmd, signed_psbt); |
| 189 | } |
| 190 | |
| 191 | static struct command_result * |
| 192 | datastore_add_success(struct command *cmd, |
nothing calls this directly
no test coverage detected