-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Add anchor output to the commitment transaction #3587
Copy link
Copy link
Closed
Labels
advancedIssues suitable for very experienced developersIssues suitable for very experienced developerschain handlingchannelscommitmentsCommitment transactions containing the state of the channelCommitment transactions containing the state of the channelfeesRelated to the fees paid for transactions (both LN and funding/commitment transactions)Related to the fees paid for transactions (both LN and funding/commitment transactions)
Milestone
Metadata
Metadata
Assignees
Labels
advancedIssues suitable for very experienced developersIssues suitable for very experienced developerschain handlingchannelscommitmentsCommitment transactions containing the state of the channelCommitment transactions containing the state of the channelfeesRelated to the fees paid for transactions (both LN and funding/commitment transactions)Related to the fees paid for transactions (both LN and funding/commitment transactions)
In the current commitment format, the miner fee is negotiated through the
update_feemessage. This creates several complications:to_localoutput timelocked and can't use that to cpfp the transaction.A possible solution (originally proposed by @halseth on the lightning-dev mailing list) is to add a so called anchor output to the commitment transaction. This is a non-timelocked output that can be used to cpfp the transaction in order to get it confirmed.
With the anchor output present, the fee on the commitment transaction itself can be minimal as both parties have the opportunity to attach additional fees.