Skip to content

Limit number of pending un-funded channel requests #1889

Closed

Description

@TheBlueMatt

We need to limit the number of pending channel requests we have or we can OOM. We should probably just set some static limit of unfunded channels and close the oldest one when we get a request for a new one. Sadly I think this will likely allow for an attacker to prevent us from accepting new channels, but maybe that's okay.

Activity

  1. modified the milestones: 0.0.113, 0.0.114 on Nov 30, 2022
  2. ariard commented on Dec 1, 2022

    @ariard

    See also the comments in dual-funding: lightning/bolts#851 (comment) We could prevent an attacker to censor our new channel acceptance by restraining new inbound connections. I don't think we have any default robust strategy yet, even you can a custom one before call to new_inbound_connection.

  3. TheBlueMatt commented on Jan 17, 2023

    @TheBlueMatt
    CollaboratorAuthor

    Note we also need to limit the total number of (inbound) peers, as there is (at least some) per-peer overhead.

  4. ariard commented on Jan 17, 2023

    @ariard

    Yes -- Limiting the total number of inbound peers would be helpful both for dual-funding overflow and known per-peer overhead.

  5. TheBlueMatt commented on Jan 26, 2023

    @TheBlueMatt
    CollaboratorAuthor

    CC #1987 which would let us substantially raise the limits here.

  6. added 10 commits that reference this issue on Jan 26, 2023
    8f3fe98
    363d848
    0906649
    ad13643
    d13e42a
    a972510
    de34e4b
    746d5f2
    3833d70
    3622d55
  7. added 2 commits that reference this issue on Feb 21, 2023
    3f3daed
    d5fb804
  8. added a commit that references this issue on Jul 24, 2023
    acee2a7
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