Skip to content

Allow private addresses for testing - #5334

Merged
SirTyson merged 1 commit into
stellar:masterfrom
SirTyson:allow-private-addresses-for-testing
Jul 29, 2026
Merged

Allow private addresses for testing#5334
SirTyson merged 1 commit into
stellar:masterfrom
SirTyson:allow-private-addresses-for-testing

Conversation

@SirTyson

@SirTyson SirTyson commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Description

Super cluster missions where we do not specify preferred peers only currently do not work. This is because each peer IP we see during discovery phase looks like a private IP and gets dropped. This flag can be set in SSC tests to skip the check.

Checklist

  • Reviewed the contributing document
  • Rebased on top of master (no merge commits)
  • Ran clang-format v8.0.0 (via make format or the Visual Studio extension)
  • Compiles
  • Ran all tests
  • If change impacts performance, include supporting evidence per the performance document

@SirTyson
SirTyson requested a review from marta-lokhova July 15, 2026 00:17
@SirTyson
SirTyson marked this pull request as ready for review July 15, 2026 00:17
Copilot AI review requested due to automatic review settings July 15, 2026 00:17

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds an opt-in testing flag for peer discovery over RFC1918 networks.

Changes:

  • Adds and parses a default-disabled testing option.
  • Allows private addresses in outgoing and incoming peer gossip when enabled.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
src/overlay/PeerManager.cpp Gates private peer advertisements.
src/overlay/Peer.cpp Gates acceptance of private peers.
src/main/Config.h Declares the new option.
src/main/Config.cpp Initializes and parses the option.

Comment thread src/overlay/Peer.cpp Outdated
Comment thread src/overlay/PeerManager.cpp Outdated
Comment thread src/main/Config.h Outdated
marta-lokhova
marta-lokhova previously approved these changes Jul 15, 2026

@marta-lokhova marta-lokhova left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM overall, one small suggestion

Comment thread src/main/Config.h Outdated
@SirTyson
SirTyson force-pushed the allow-private-addresses-for-testing branch from 8e11ec9 to 7f4a659 Compare July 28, 2026 21:16
@SirTyson
SirTyson enabled auto-merge July 28, 2026 23:50
@SirTyson
SirTyson added this pull request to the merge queue Jul 28, 2026
Merged via the queue into stellar:master with commit 6bb319f Jul 29, 2026
69 checks passed
@SirTyson
SirTyson deleted the allow-private-addresses-for-testing branch July 29, 2026 00:49
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.

3 participants