Skip to content

[bug]: Relax restricted peer access rules #9874

@ziggie1984

Description

@ziggie1984

The new introduced access manager in LND 19 is very restrictive by disallowing new inbound and outbound connections (no channel peers) after a certain peer count threshold (30 by default). This can be exploited by consuming all available connection slots, thereby hindering our ability to establish new peer connections and open channels to new peers (or allowing new inbound capacity).

To address this, I propose the following adjustments to the access manager's behavior:

  1. Unrestricted Outbound Connections: We must always allow outbound connections, irrespective of the current peer count. This guarantees our node's continuous ability to initiate connections with new peers and expand its channel network.

  2. Conditional Inbound Connection Allowance: For inbound connections, a new peer should be granted a temporary grace period upon connection. During this brief time-window, the peer is expected to open a channel. If a channel is not established within this specified timeframe, the peer should be automatically disconnected.

Metadata

Metadata

Assignees

Labels

bugUnintended code behaviourp2pCode related to the peer-to-peer behaviour

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions