Skip to content

Add details for post-anchor dust_limit_satoshis - #1301

Merged
t-bast merged 2 commits into
lightning:masterfrom
t-bast:dust-limit-recommandations
Feb 27, 2026
Merged

Add details for post-anchor dust_limit_satoshis#1301
t-bast merged 2 commits into
lightning:masterfrom
t-bast:dust-limit-recommandations

Conversation

@t-bast

@t-bast t-bast commented Nov 19, 2025

Copy link
Copy Markdown
Collaborator

Since the introduction of option_anchors, pre-signed HTLC transactions don't include any fees, and thus don't contribute to trimming. This results in HTLC outputs in the commitment transactions that may be forever uneconomical to spend, and will pollute the utxo set.

We should use a dust_limit_satoshis that is higher than Bitcoin Core's standard values to take into account the cost of these second-stage txs at a reasonable (TM) feerate. If we want for example to be able to claim HTLC outputs at 20 sat/byte, we need a dust_limit_satoshis of around 4 000 sats.

Since the introduction of `option_anchors`, pre-signed HTLC transactions
don't include any fees, and thus don't contribute to trimming. This
results in HTLC outputs in the commitment transactions that may be
forever uneconomical to spend, and will pollute the utxo set.

We should use a `dust_limit_satoshis` that is higher than Bitcoin Core's
standard values to take into account the cost of these second-stage txs
at a reasonable (TM) feerate.

@ziggie1984 ziggie1984 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ACK, had some minor comments.

Comment thread 03-transactions.md
Comment thread 03-transactions.md

@Roasbeef Roasbeef left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM 📸

@t-bast

t-bast commented Feb 9, 2026

Copy link
Copy Markdown
Collaborator Author

@TheBlueMatt @rustyrussell can I go ahead and merge this?

@t-bast

t-bast commented Feb 24, 2026

Copy link
Copy Markdown
Collaborator Author

Gentle ping @TheBlueMatt @rustyrussell 🙏

@TheBlueMatt TheBlueMatt left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Note that LDK still hasn't updated to allow higher dust limits, but happy to see the spec change land...we'll do it at some point.

@rustyrussell

Copy link
Copy Markdown
Collaborator

Ack!

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.

5 participants