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

Function attempt_ongoing

plugins/xpay/xpay.c:2663–2673  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2661}
2662
2663bool 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
2675static struct command_result *xpay_core(struct command *cmd,
2676 const char *invstring TAKES,

Callers 1

add_new_entryFunction · 0.85

Calls 1

xpay_ofFunction · 0.85

Tested by

no test coverage detected