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

Function payment_max_htlcs

plugins/libplugin-pay.c:3588–3605  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3586
3587
3588static u32 payment_max_htlcs(const struct payment *p)
3589{
3590 return 10000;/*
3591 const struct payment *root;
3592 struct channel_hint *h;
3593 u32 res = 0;
3594 for (size_t i = 0; i < tal_count(p->hints->hints); i++) {
3595 h = &p->hints->hints[i];
3596 if (h->local && h->enabled)
3597 res += h->local->htlc_budget;
3598 }
3599 root = p;
3600 while (root->parent)
3601 root = root->parent;
3602 if (res > root->max_htlcs)
3603 res = root->max_htlcs;
3604 return res;*/
3605}
3606
3607/** payment_lower_max_htlcs
3608 *

Callers 1

adaptive_splitter_cbFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected