| 2512 | } |
| 2513 | |
| 2514 | bool attempt_ongoing(struct plugin *plugin, const struct sha256 *payment_hash) |
| 2515 | { |
| 2516 | struct xpay *xpay = xpay_of(plugin); |
| 2517 | const struct payment *payment; |
| 2518 | |
| 2519 | list_for_each(&xpay->payments, payment, list) { |
| 2520 | if (sha256_eq(&payment->payment_hash, payment_hash)) |
| 2521 | return true; |
| 2522 | } |
| 2523 | return false; |
| 2524 | } |
| 2525 | |
| 2526 | static struct command_result *xpay_core(struct command *cmd, |
| 2527 | const char *invstring TAKES, |
no test coverage detected