Generic handler for RPC failures that should end up failing the payment. */
| 216 | |
| 217 | /* Generic handler for RPC failures that should end up failing the payment. */ |
| 218 | static struct command_result *payment_rpc_failure(struct command *cmd, |
| 219 | const char *method, |
| 220 | const char *buffer, |
| 221 | const jsmntok_t *toks, |
| 222 | struct payment *p) |
| 223 | { |
| 224 | return payment_fail(p, |
| 225 | "Failing a partial payment due to a failed RPC call %s: %.*s", |
| 226 | method, toks->end - toks->start, buffer + toks->start); |
| 227 | } |
| 228 | |
| 229 | struct payment_tree_result payment_collect_result(struct payment *p) |
| 230 | { |
nothing calls this directly
no test coverage detected