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

channeldb: Indicate cooperative close initator #3961

Merged

Commits on Feb 21, 2020

  1. Configuration menu
    Copy the full SHA
    8d632b8 View commit details
    Browse the repository at this point in the history
  2. channeldb: store close initiator status

    This commit adds two new channel statuses which indicate the party that
    initatited closing the channel. These statuses are set in conjunction
    with the existing commit broadcast status so that we do not need to
    migrate existing logic to handle multiple types of closes. This status
    is set for locally initiated force closes in this commit because they
    follow a similar pattern to cooparative closes, marking the commitment
    broadcast then proceeding with tx broadcast. Remote force closes are
    added in the following commit, as they are handled differently.
    carlaKC committed Feb 21, 2020
    Configuration menu
    Copy the full SHA
    d3cb6ad View commit details
    Browse the repository at this point in the history
  3. channeldb: save channel status on channel close

    Add an optional channel status CloseChannel which will be stored on the
    hitsorical channel which is persisted at channel close. This status is
    used to set the close initiator for channels that do not complete the
    funding flow or we abandon. In follow up commits, this status will be
    used to record force and breach closes. The value is written to the
    historical channel bucket for diplay over rpc.
    carlaKC committed Feb 21, 2020
    Configuration menu
    Copy the full SHA
    11d975b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c9915e0 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    4eb3036 View commit details
    Browse the repository at this point in the history
  6. lnrpc: add open and close initiator to close summary

    Add an initiator enum which allows up to display an unknown value for
    channels that are not in the historical chan bucket, rather than having
    and ambiguous false value also representing no-value. A both option is
    added to cover the case where both parties initiated a close on chain.
    carlaKC committed Feb 21, 2020
    Configuration menu
    Copy the full SHA
    b55470e View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    e74b6f8 View commit details
    Browse the repository at this point in the history
  8. lntest: check close initiator in basic channel itest

    Update channel updates and subscription itest to check that close
    initiator is appropriately set for cooperative and force closes for the
    local and remote party.
    carlaKC committed Feb 21, 2020
    Configuration menu
    Copy the full SHA
    b3e6395 View commit details
    Browse the repository at this point in the history