Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

services/horizon: Add flag to choose a custom peering port for Captive Core #3484

Merged
merged 5 commits into from
Mar 23, 2021

Conversation

Shaptic
Copy link
Contributor

@Shaptic Shaptic commented Mar 23, 2021

What

This introduces the --captive-core-peer-port=11625 parameter, which allows users to control which port Captive Core binds to when joining the Stellar network swarm.

Why

Closes #3441.

Known limitations

No validation is done on the actual value passed in (aside from type == uint), so non-port values work. However, then Core will fail to start (with an appropriate error message, of course). We could try to "fail fast" instead, but we don't do this for the HTTP port either.

@Shaptic Shaptic added this to the Horizon 2.1.0 milestone Mar 23, 2021
@Shaptic Shaptic requested a review from a team March 23, 2021 02:18
@Shaptic Shaptic self-assigned this Mar 23, 2021
Copy link
Contributor

@bartekn bartekn left a comment

Choose a reason for hiding this comment

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

👍 Please update CHANGELOG.

ingest/ledgerbackend/stellar_core_runner.go Outdated Show resolved Hide resolved
@Shaptic Shaptic merged commit ec5600b into stellar:master Mar 23, 2021
@Shaptic Shaptic deleted the custom-peer-port branch March 23, 2021 16:46
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.

Captive core peer port can clash with other stellar core instances running on the machine
3 participants