Skip to content

[defaults]: Consider Reducing Default max_htlcx_accepted #8775

@carlaKC

Description

@carlaKC

bitcoin/bitcoin#29873 proposes a 10,000 vbyte limit on unconfirmed parent TRUC(V3) transactions, which in the context of lightning would be our commitment transaction. Given our expected commitment weight in bolt-03 for anchor channels we can calculate the maximum HTLCs that would fit in this transaction limit:

(900 + 172 * num-htlc-outputs + 224)/4 = 10000 vbytes
num-htlc-outputs = 226

Divided between two channel participants we arrive at max-accepted-htlcs = 113, which is below LND's current limit of 483. While we'll definitely need dynamic commitments to migrate legacy channels to set a lower limit, upgrading the default now is a step in this direction for new channels.

Opened this PR to start the conversation about the change of defaults in the context of LND as a project. If there's feedback on this limit, I think it makes sense to have the conversation on the bitcoin PR - as they're actively seeking input from LN folks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    HTLCconfigParameters/arguments/config file related issues/PRs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions