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

Function inject_amount

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

Source from the content-addressed store, hash-verified

386}
387
388static struct amount_msat inject_amount(const struct attempt *attempt)
389{
390 if (tal_count(attempt->hops) == 0)
391 return attempt->amount;
392 return attempt->hops[0].amount_in;
393}
394
395static struct amount_msat attempt_deliver(const struct attempt *attempt)
396{

Callers 1

do_injectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected