| 3586 | |
| 3587 | |
| 3588 | static 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 | * |
no outgoing calls
no test coverage detected