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

Function should_finish_command

plugins/xpay/xpay.c:450–460  ·  view source on GitHub ↗

Should we finish command now? */

Source from the content-addressed store, hash-verified

448
449/* Should we finish command now? */
450static bool should_finish_command(const struct payment *payment)
451{
452 const struct xpay *xpay = xpay_of(payment->plugin);
453
454 if (!xpay->slow_mode)
455 return true;
456
457 /* In slow mode, only finish when no remaining attempts
458 * (caller has already moved it to past_attempts). */
459 return list_empty(&payment->current_attempts);
460}
461
462static void payment_succeeded(struct payment *payment,
463 const struct preimage *preimage)

Callers 2

payment_succeededFunction · 0.85
payment_give_upFunction · 0.85

Calls 1

xpay_ofFunction · 0.85

Tested by

no test coverage detected