| 2597 | } |
| 2598 | |
| 2599 | bool attempt_ongoing(struct plugin *plugin, const struct sha256 *payment_hash) |
| 2600 | { |
| 2601 | struct xpay *xpay = xpay_of(plugin); |
| 2602 | const struct payment *payment; |
| 2603 | |
| 2604 | list_for_each(&xpay->payments, payment, list) { |
| 2605 | if (sha256_eq(&payment->payment_hash, payment_hash)) |
| 2606 | return true; |
| 2607 | } |
| 2608 | return false; |
| 2609 | } |
| 2610 | |
| 2611 | static struct command_result *xpay_core(struct command *cmd, |
| 2612 | const char *invstring TAKES, |
no test coverage detected