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

Fix port collision between rpc and horizon in testnet config #497

Merged
merged 1 commit into from
Sep 19, 2023

Conversation

leighmcculloch
Copy link
Member

@leighmcculloch leighmcculloch commented Sep 19, 2023

What

Set the port of soroban-rpc in the testnet config to 11726.

Why

In #494 we added soroban-rpc to the testnet config, but accidentally assigned its captive stellar-core the same port that the horizon captive stellar-core uses. This causes one of the two to shut down when starting up.

In the local network config we use 11725 for horizon's captive stellar-core, and 11726 for soroban-rpc's captive stellar-core. This change merely follows suit.

@leighmcculloch leighmcculloch marked this pull request as ready for review September 19, 2023 23:33
@leighmcculloch leighmcculloch enabled auto-merge (squash) September 19, 2023 23:35
@leighmcculloch
Copy link
Member Author

The reason this bug wasn't identified in tests is because CI tests that horizon captive core works, or soroban-rpc works, and it doesn't test both running at the same time.

We could enable that. I'll do that in a separate PR to evaluate the time cost because the tests in this repo are a balance between running sufficient tests vs keeping test run time and resources reasonable.

@leighmcculloch leighmcculloch merged commit 58679a6 into master Sep 19, 2023
76 checks passed
@leighmcculloch leighmcculloch deleted the fix-testnet-captivecore branch September 19, 2023 23:57
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