Skip to content

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

Closed

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

  1. added this to the 0.1 milestone on Oct 25, 2024
  2. TheBlueMatt commented on Oct 25, 2024

    @TheBlueMatt
    CollaboratorAuthor

    Optimistically tagging 0.1 in the hopes someone finds the time to pick it up (and it shows up as important), but if it doesn't make it so be it and we can move it to a friday issue.

  3. modified the milestones: 0.1, 0.2 on Dec 8, 2024
  4. added 4 commits that reference this issue on Sep 18, 2025
    278aaa1
    d0018e3
    f7d3296
    744664e
  5. added a commit that references this issue on Sep 19, 2025
    5dcbfb4
  6. added 2 commits that reference this issue on Oct 6, 2025
    49b890d
    9501d82
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