-
Notifications
You must be signed in to change notification settings - Fork 24
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
Conversation
There was a problem hiding this 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.
src/commonMain/kotlin/fr/acinq/lightning/channel/states/Channel.kt
Outdated
Show resolved
Hide resolved
src/commonMain/kotlin/fr/acinq/lightning/channel/Commitments.kt
Outdated
Show resolved
Hide resolved
There was a problem hiding this 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.
I rebased on master in branch custom-feerate-commit-sig-pm. |
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.
8032630
to
fe9da80
Compare
Rebased to fix import issue. |
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? |
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. |
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.