Skip to content

lnwire+chancloser: add new fee range TLV to co-op msg & use during negotiation #5644

Closed
Roasbeef wants to merge 2 commits intolightningnetwork:masterfrom
Roasbeef:co-op-close-tlv
Closed

lnwire+chancloser: add new fee range TLV to co-op msg & use during negotiation #5644
Roasbeef wants to merge 2 commits intolightningnetwork:masterfrom
Roasbeef:co-op-close-tlv

Conversation

@Roasbeef
Copy link
Copy Markdown
Member

@Roasbeef Roasbeef commented Aug 20, 2021

In this commit, we add a new FeeRange TLV to the ClosingSigned message
that allows either side to attempt to cut the fee negotiation process
short by sending their min+max fee. In the ideal case, the funder sends
over their fee range, which is accepted by the responder. However, it's
possible for things to break down which results in either the close
attempting being abandoned, or they fall back to the legacy less defined
negotiation process.

We then begin to use the new fee rate information as a hint
to allow us to short circuit the co-op close negotiation process by
simply echo'ing back the initiator's fee rate if it's within our desired
range, or accepting the responder's fee rate for the initiator.

This is just an initial draft, as we still need to hone into exactly
what fee range we want to advertise as the initiator.

Implements a variant of lightning/bolts#847
dependent on : lightning/bolts#1016

Fixes #4413

In this commit, we add a new FeeRange TLV to the ClosingSigned message
that allows either side to attempt to cut the fee negotiation process
short by sending their min+max fee. In the ideal case, the funder sends
over their fee range, which is accepted by the responder. However, it's
possible for things to break down which results in either the close
attempting being abandoned, or they fall back to the legacy less defined
negotiation process.
In this commit, we begin to use the new fee rate information as a hint
to allow us to short circuit the co-op close negotiation process by
simply echo'ing back the initiator's fee rate if it's within our desired
range, or accepting the responder's fee rate for the initiator.

This is just an initial draft, as we still need to hone into exactly
what fee range we want to advertise as the initiator.
@Roasbeef
Copy link
Copy Markdown
Member Author

The second commit is incomplete as it needs to gate that behavior to retain the prior tests, then add new ones that exercise the new behavior.

@lightninglabs-deploy
Copy link
Copy Markdown
Collaborator

@Crypt-iQ: review reminder

@Crypt-iQ
Copy link
Copy Markdown
Collaborator

replaced by #7062

@Crypt-iQ Crypt-iQ closed this Oct 19, 2022
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.

LND nodes overpay quite significantly on mutual closing TX's

4 participants