Skip to content

Conversation

@joostjager
Copy link
Contributor

@joostjager joostjager commented Jan 21, 2026

Adds a new endpoint to connect to a peer on the Lightning Network without opening a channel. This is useful for establishing connections before channel operations or for maintaining peer connectivity.

The endpoint accepts node_pubkey, address, and an optional persist flag that defaults to true for automatic reconnection on restart.

Needed this endpoint when working on #108. Nodes sometimes seems very slow to auto-reconnect, or not reconnect at all?

@ldk-reviews-bot
Copy link

ldk-reviews-bot commented Jan 21, 2026

👋 Thanks for assigning @benthecarman as a reviewer!
I'll wait for their review and will help manage the review process.
Once they submit their review, I'll check if a second reviewer would be helpful.

Adds a new endpoint to connect to a peer on the Lightning Network
without opening a channel. This is useful for establishing connections
before channel operations or for maintaining peer connectivity.

The endpoint accepts node_pubkey, address, and an optional persist flag
that defaults to true for automatic reconnection on restart.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@tnull
Copy link
Collaborator

tnull commented Jan 21, 2026

See #103

@tnull tnull linked an issue Jan 21, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add connect peer rpc

3 participants