| 2661 | } |
| 2662 | |
| 2663 | bool attempt_ongoing(struct plugin *plugin, const struct sha256 *payment_hash) |
| 2664 | { |
| 2665 | struct xpay *xpay = xpay_of(plugin); |
| 2666 | const struct payment *payment; |
| 2667 | |
| 2668 | list_for_each(&xpay->payments, payment, list) { |
| 2669 | if (sha256_eq(&payment->payment_hash, payment_hash)) |
| 2670 | return true; |
| 2671 | } |
| 2672 | return false; |
| 2673 | } |
| 2674 | |
| 2675 | static struct command_result *xpay_core(struct command *cmd, |
| 2676 | const char *invstring TAKES, |
no test coverage detected