Skip to content

Fix check peer connection before connecting#525

Merged
Jossec101 merged 1 commit into
mainfrom
Jossec101/stack/11
Jun 30, 2026
Merged

Fix check peer connection before connecting#525
Jossec101 merged 1 commit into
mainfrom
Jossec101/stack/11

Conversation

@Jossec101

@Jossec101 Jossec101 commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Stacked PRs:


Fix check peer connection before connecting

Add a ListPeers check at the start of ConnectToPeer to short-circuit
when the peer is already connected, avoiding unnecessary ConnectPeer
RPC calls and noisy errors. Also throw PeerNotOnlineException early
when no TCP address is available for the peer, and reuse the macaroon
metadata across both RPC calls.

Add a ListPeers check at the start of ConnectToPeer to short-circuit
when the peer is already connected, avoiding unnecessary ConnectPeer
RPC calls and noisy errors. Also throw PeerNotOnlineException early
when no TCP address is available for the peer, and reuse the macaroon
metadata across both RPC calls.

stack-info: PR: #525, branch: Jossec101/stack/11
@Jossec101 Jossec101 merged commit 33a63ea into main Jun 30, 2026
2 checks passed
@Jossec101 Jossec101 deleted the Jossec101/stack/11 branch June 30, 2026 14:12
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.

2 participants