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

cnct: anchor output sweeping and fee bumping #3758

Merged
merged 17 commits into from
Mar 18, 2020

Commits on Mar 17, 2020

  1. Configuration menu
    Copy the full SHA
    30fc03d View commit details
    Browse the repository at this point in the history
  2. lnwallet+channeldb: add anchor resolutions

    Co-authored-by: Joost Jager <joost.jager@gmail.com>
    halseth and joostjager committed Mar 17, 2020
    Configuration menu
    Copy the full SHA
    dc6c463 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    1c93e9e View commit details
    Browse the repository at this point in the history
  4. sweep: leave exclusive group unchanged on parameter update

    Exclusive group is a static property that doesn't need to be updated.
    Requiring the exclusive group to be passed into UpdateParams creates a
    burden for the caller to make sure they supply the existing group.
    
    This change will be beneficial for users that bump anchor sweeps that
    have exclusive groups set.
    joostjager committed Mar 17, 2020
    Configuration menu
    Copy the full SHA
    29e1489 View commit details
    Browse the repository at this point in the history
  5. cnct: always set trigger height to close height

    Prior to this change, the trigger height for closed channels was set to
    the current best block height. As this height is in some cases used as a
    height hint, the spend may have been missed.
    joostjager committed Mar 17, 2020
    Configuration menu
    Copy the full SHA
    c0b1b3b View commit details
    Browse the repository at this point in the history
  6. cnct: create channel interface for arbitrator

    Allows unit testing of the channel arbitrator with fewer dependencies.
    This is a preparation for the addition of anchor sweeping.
    joostjager committed Mar 17, 2020
    Configuration menu
    Copy the full SHA
    7f3d4e7 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    dd77d92 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    c376cdb View commit details
    Browse the repository at this point in the history
  9. cnct+sweeper: give contract court access to relay fee

    Relay fee is needed later to sweep anchors at the minimum fee rate.
    joostjager committed Mar 17, 2020
    Configuration menu
    Copy the full SHA
    3b51739 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    e8e99c6 View commit details
    Browse the repository at this point in the history

Commits on Mar 18, 2020

  1. cnct: pre-confirmation anchor sweep

    Start anchor sweep attempts immediately after the commitment transaction
    has been published. This makes the anchor known to the sweeper and
    allows the user to bump the fee on it to get their commitment
    transaction confirmed in case the fee committed too is insufficient for
    timely confirmation.
    joostjager committed Mar 18, 2020
    Configuration menu
    Copy the full SHA
    d2b6472 View commit details
    Browse the repository at this point in the history
  2. cnct: do not persist stateless resolvers

    Preparation for the anchor resolver which does not have persistent
    state.
    joostjager committed Mar 18, 2020
    Configuration menu
    Copy the full SHA
    07a39b1 View commit details
    Browse the repository at this point in the history
  3. cnct: do not ignore resolver reports after resolution

    Preparation for anchor resolver. The recovered anchor amount should
    still be included in the pending channel report even after it has been
    resolved.
    
    This also fixes an existing bug that in some cases caused the recovered
    amount from an htlc resolver not to be included in the total.
    joostjager committed Mar 18, 2020
    Configuration menu
    Copy the full SHA
    d84b596 View commit details
    Browse the repository at this point in the history
  4. cnct: resolve anchors post-confirmation

    Sweeping anchors and being able to bump the fee was already added in a
    previous commit. This commit extends anchor sweeping with an anchor
    resolver object that becomes active after the commitment tx confirms.
    At that point, the anchors do not serve the purpose of getting the
    commitment tranaction confirmed anymore. It is however still possible to
    reclaim some of their value if using a low fee rate.
    joostjager committed Mar 18, 2020
    Configuration menu
    Copy the full SHA
    ea397c9 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    ab451f6 View commit details
    Browse the repository at this point in the history
  6. lnrpc: expose commit hashes for waiting close channels

    To make it easier to determine which pending sweep to bump in order to
    get your anchor commitment tx confirmed.
    joostjager committed Mar 18, 2020
    Configuration menu
    Copy the full SHA
    d60303b View commit details
    Browse the repository at this point in the history
  7. lncli: add bumpchannelclose command

    This command allows users to easily bump the fee on their unconfirmed
    closing transactions.
    joostjager committed Mar 18, 2020
    Configuration menu
    Copy the full SHA
    fa115b5 View commit details
    Browse the repository at this point in the history