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

Function initial_sent

plugins/xpay/xpay.c:381–386  ·  view source on GitHub ↗

For self-pay, we don't have hops. */

Source from the content-addressed store, hash-verified

379
380/* For self-pay, we don't have hops. */
381static struct amount_msat initial_sent(const struct attempt *attempt)
382{
383 if (tal_count(attempt->hops) == 0)
384 return attempt->amount;
385 return attempt->hops[0].amount_out;
386}
387
388static struct amount_msat inject_amount(const struct attempt *attempt)
389{

Callers 1

total_sentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected