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

Function payment_is_success

plugins/libplugin-pay.c:2045–2048  ·  view source on GitHub ↗

A payment is finished if a) it is in a final state, of b) it's in a * child-spawning state and all of its children are in a final state. */

Source from the content-addressed store, hash-verified

2043/* A payment is finished if a) it is in a final state, of b) it's in a
2044 * child-spawning state and all of its children are in a final state. */
2045static bool payment_is_success(struct payment *p)
2046{
2047 return (payment_aggregate_states(p) & PAYMENT_STEP_SUCCESS) != 0;
2048}
2049
2050/* Function to bubble up completions to the root, which actually holds on to
2051 * the command that initiated the flow. */

Callers 1

payment_finishedFunction · 0.85

Calls 1

payment_aggregate_statesFunction · 0.85

Tested by

no test coverage detected