Generic handler for RPC failures that should end up failing the payment. */
| 189 | |
| 190 | /* Generic handler for RPC failures that should end up failing the payment. */ |
| 191 | static struct command_result *payment_rpc_failure(struct command *cmd, |
| 192 | const char *buffer, |
| 193 | const jsmntok_t *toks, |
| 194 | struct payment *p) |
| 195 | { |
| 196 | payment_fail(p, |
| 197 | "Failing a partial payment due to a failed RPC call: %.*s", |
| 198 | toks->end - toks->start, buffer + toks->start); |
| 199 | return command_still_pending(cmd); |
| 200 | } |
| 201 | |
| 202 | struct payment_tree_result payment_collect_result(struct payment *p) |
| 203 | { |
nothing calls this directly
no test coverage detected