| 1509 | } |
| 1510 | |
| 1511 | static struct command_result *reserve_done_err(struct command *aux_cmd, |
| 1512 | const char *method, |
| 1513 | const char *buf, |
| 1514 | const jsmntok_t *result, |
| 1515 | struct attempt *attempt) |
| 1516 | { |
| 1517 | payment_give_up(aux_cmd, attempt->payment, PAY_UNSPECIFIED_ERROR, |
| 1518 | "Reservation failed: '%.*s'", |
| 1519 | json_tok_full_len(result), |
| 1520 | json_tok_full(buf, result)); |
| 1521 | return command_still_pending(aux_cmd); |
| 1522 | } |
| 1523 | |
| 1524 | /* Does not set shared_secrets */ |
| 1525 | static struct attempt *new_attempt(struct payment *payment, |
nothing calls this directly
no test coverage detected