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

Function initial_sent

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

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

Source from the content-addressed store, hash-verified

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

Callers 1

total_sentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected