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

Function inject_amount

plugins/xpay/xpay.c:383–388  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

381}
382
383static struct amount_msat inject_amount(const struct attempt *attempt)
384{
385 if (tal_count(attempt->hops) == 0)
386 return attempt->amount;
387 return attempt->hops[0].amount_in;
388}
389
390static struct amount_msat attempt_deliver(const struct attempt *attempt)
391{

Callers 1

do_injectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected