Skip to content
LearnBitcoin

ResearchBitcoin Dev Archive lightning-dev list

Funds locked in channel and MAX_HTLC

2 messages, Dec 2, 2018. Started by Cezary Dziemian.

Cezary Dziemian, Rusty Russell

Permalink First message in the Wayback Machine

Cezary Dziemian permalink original

Hello guys,

I red BOLT. Do I understand correctly, that max_accepted_htlcs means that for single channel there is possibility to have such amount of transactions pending at the same time?

Best Regards, Cezary Dziemian

Rusty Russell in reply to Cezary Dziemian permalink original

Cezary Dziemian <cezary.dziemian at gmail.com> writes:

Quoted text (5 lines)
> Hello guys,
>
> I red BOLT. Do I understand correctly, that  max_accepted_htlcs means that
> for single channel there is possibility to have such amount of transactions
> pending at the same time?

Yes.

  - if result would be offering more than the remote's
  `max_accepted_htlcs` HTLCs, in the remote commitment transaction:
    - MUST NOT add an HTLC.

Note there is also a maximum amount:

  - if the sum of total offered HTLCs would exceed the remote's
`max_htlc_value_in_flight_msat`:
    - MUST NOT add an HTLC.

Cheers, Rusty.