MCPcopy Create free account
hub / github.com/ElementsProject/lightning / attempt_ongoing

Function attempt_ongoing

plugins/xpay/xpay.c:2599–2609  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2597}
2598
2599bool 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
2611static struct command_result *xpay_core(struct command *cmd,
2612 const char *invstring TAKES,

Callers 1

add_new_entryFunction · 0.85

Calls 1

xpay_ofFunction · 0.85

Tested by

no test coverage detected