Skip to content

Drop ChannelMonitors for inbound, no-local-funding channels after they time out #3384

Description

@TheBlueMatt

We continually have issues where users have channels that were never funded (the funding transaction never confirmed/was conflicted) and because we don't see the channel close, we never allow the ChannelMonitors to be pruned, leaving a Balance::ClaimableOnChannelClose lying around forever. Properly pruning these channels for channels where we contributed some funds (either because the channel was outbound-v1, we received some push_msats for inbound-v1, or a dual-funded v2) takes tracking the inputs for the funding tx and actually detecting a conflict which makes funding lock-in impossible, but we could at least do the trivial case where we don't have any funds to recover and the channel has timed out so we FC'd it anyway.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions