| 3602 | |
| 3603 | |
| 3604 | static 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 | * |
no outgoing calls
no test coverage detected