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

Function should_finish_command

plugins/xpay/xpay.c:445–455  ·  view source on GitHub ↗

Should we finish command now? */

Source from the content-addressed store, hash-verified

443
444/* Should we finish command now? */
445static bool should_finish_command(const struct payment *payment)
446{
447 const struct xpay *xpay = xpay_of(payment->plugin);
448
449 if (!xpay->slow_mode)
450 return true;
451
452 /* In slow mode, only finish when no remaining attempts
453 * (caller has already moved it to past_attempts). */
454 return list_empty(&payment->current_attempts);
455}
456
457static void payment_succeeded(struct payment *payment,
458 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