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

Function payment_max_htlcs

plugins/libplugin-pay.c:3604–3621  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3602
3603
3604static u32 payment_max_htlcs(const struct payment *p)
3605{
3606 return 10000;/*
3607 const struct payment *root;
3608 struct channel_hint *h;
3609 u32 res = 0;
3610 for (size_t i = 0; i < tal_count(p->hints->hints); i++) {
3611 h = &p->hints->hints[i];
3612 if (h->local && h->enabled)
3613 res += h->local->htlc_budget;
3614 }
3615 root = p;
3616 while (root->parent)
3617 root = root->parent;
3618 if (res > root->max_htlcs)
3619 res = root->max_htlcs;
3620 return res;*/
3621}
3622
3623/** payment_lower_max_htlcs
3624 *

Callers 1

adaptive_splitter_cbFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected