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

Commits on Aug 19, 2021

  1. lnwire: add new FeeRange TLV to ClosingSigned message

    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.
    Roasbeef committed Aug 19, 2021
    Configuration menu
    Copy the full SHA
    51594e6 View commit details
    Browse the repository at this point in the history

Commits on Aug 20, 2021

  1. lnwallet/chancloser: use new fee range hint in co-op negotiation

    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 committed Aug 20, 2021
    Configuration menu
    Copy the full SHA
    eb8892f View commit details
    Browse the repository at this point in the history