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

Function attempt_ongoing

plugins/xpay/xpay.c:2514–2524  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2512}
2513
2514bool 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
2526static struct command_result *xpay_core(struct command *cmd,
2527 const char *invstring TAKES,

Callers 1

add_new_entryFunction · 0.85

Calls 1

xpay_ofFunction · 0.85

Tested by

no test coverage detected