Skip to content

Increase maximum number of accepted HTLCs to 19#817

Merged
sstone merged 1 commit intomasterfrom
increase-max-accepted-htlcs
Oct 9, 2025
Merged

Increase maximum number of accepted HTLCs to 19#817
sstone merged 1 commit intomasterfrom
increase-max-accepted-htlcs

Conversation

@sstone
Copy link
Member

@sstone sstone commented Oct 8, 2025

#800 included a lot of improvements on our data structure and removed data that was either redondant or could be re-computed. This means that serialised channel states are smaller, and we can increase the number of pending HTLCs to 19 and stay below the 65 Kb size limit for LN messages.

Note that this applies to new channels only: existing ones will still use the previous value of 12 pending HTLCs.

@sstone sstone force-pushed the increase-max-accepted-htlcs branch from 23576ef to 981ca67 Compare October 9, 2025 07:41
#800 included a lot of improvements on our data structure and removed data that was either redondant or could be re-computed.
This means that serialised channel states are smaller, and we can increase the number of pending HTLCs to 18 and stay below the 65 Kb size limit for LN messages.

Note that this applies to new channels only: existing ones will still use the previous value of 12 pending HTLCs.
@sstone sstone changed the title Increase maximum number of accepted HTLCs to 18 Increase maximum number of accepted HTLCs to 19 Oct 9, 2025
@sstone sstone force-pushed the increase-max-accepted-htlcs branch from 981ca67 to b993248 Compare October 9, 2025 12:38
Copy link
Member

@t-bast t-bast left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a more than 50% improvement 🚀

@sstone sstone merged commit e5eec2a into master Oct 9, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants