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

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

Closed
wants to merge 2 commits into from

Conversation

Roasbeef
Copy link
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
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

@Crypt-iQ: review reminder

@Crypt-iQ
Copy link
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