Skip to content

Commit

Permalink
fixup! paymod: Teach the presplit modifier to respect the chan HTLC l…
Browse files Browse the repository at this point in the history
…imit
  • Loading branch information
cdecker committed Jul 20, 2020
1 parent 1d0624d commit c457930
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/libplugin-pay.c
Original file line number Diff line number Diff line change
Expand Up @@ -2403,7 +2403,7 @@ static u32 payment_max_htlcs(const struct payment *p)
u32 res = 0;
for (size_t i = 0; i < tal_count(p->channel_hints); i++) {
h = &p->channel_hints[i];
if (h->local)
if (h->local && h->enabled)
res += h->htlc_budget;
}
return res;
Expand Down

0 comments on commit c457930

Please sign in to comment.