Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send commit sigs for alternative feerates #553

Merged
merged 4 commits into from
Nov 3, 2023
Merged

Conversation

t-bast
Copy link
Member

@t-bast t-bast commented Oct 16, 2023

When the commitment transaction doesn't contain any HTLC, we send additional signatures for alternative feerates. This lets the wallet provider force-close with a more interesting feerate when the wallet user disappears without closing their channels.

@t-bast t-bast requested a review from pm47 October 16, 2023 15:13
Copy link
Member

@pm47 pm47 left a comment

Choose a reason for hiding this comment

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

Only nits, otherwise LGTM.

Copy link
Member

@pm47 pm47 left a comment

Choose a reason for hiding this comment

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

LGTM, please let me do a real test with Phoenix on testnet before merging, as it's not entirely obvious to me if it works seamlessly on the eclair side.

@pm47
Copy link
Member

pm47 commented Nov 2, 2023

I rebased on master in branch custom-feerate-commit-sig-pm.

@pm47
Copy link
Member

pm47 commented Nov 2, 2023

please let me do a real test with Phoenix on testnet before merging

Test successful, I even RBFed the commit tx with higher custom commit sigs.

When the commitment transaction doesn't contain any HTLC, we send
additional signatures for alternative feerates. This lets the wallet
provider force-close with a more interesting feerate when the wallet
user disappears without closing their channels.
This is useful for the initial funding transaction and mostly for splices.
@t-bast t-bast force-pushed the custom-feerate-commit-sig branch from 8032630 to fe9da80 Compare November 2, 2023 17:03
@t-bast
Copy link
Member Author

t-bast commented Nov 2, 2023

Rebased to fix import issue.

@t-bast t-bast merged commit 7eb80e2 into master Nov 3, 2023
2 checks passed
@t-bast t-bast deleted the custom-feerate-commit-sig branch November 3, 2023 08:13
@remyers
Copy link
Contributor

remyers commented Nov 27, 2023

Do we want to extend this to also support sending htlc sigs when splices contain htlcs? or just skip sending these tlvs when htlc's are present?

@t-bast
Copy link
Member Author

t-bast commented Nov 28, 2023

We're only sending those additional sigs when the commitment is empty (no HTLCs), so there's nothing to do in the case where it's a splice with HTLCs.

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.

3 participants