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