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

Set TESTING_SOROBAN_HIGH_LIMIT_OVERRIDE for standalone network #492

Merged

Conversation

tsachiherman
Copy link
Contributor

What ?

Following a conversation with @leighmcculloch , we've decided to drop PR #480, and just set the TESTING_SOROBAN_HIGH_LIMIT_OVERRIDE for standalone networks.

The limits currently being set cannot be adjusted anyway, and it's less than likely that any developer would want to disable that on standalone network.

@leighmcculloch
Copy link
Member

leighmcculloch commented Sep 18, 2023

Unfortunately because the ingest package used by rpc and horizon is very opinionated about what are valid stellar-core.cfg parameters, we can't use this change on pubnet version of horizon that this image works with.

The parameters in the cfg have to be supported by:
https://github.com/stellar/go/blame/d41faf8cd619718b9801a62254a513591f6cbc0a/ingest/ledgerbackend/toml.go#L97

So we need to injest this value into the cfg's depending on the version of horizon and rpc in use.

I think that's why the pubnet variation of the tests are failing, because it's using a version of ingest that doesn't yet support the parameter.

@leighmcculloch
Copy link
Member

I think we can add to start script a check if horizon version is greater than N, inject the param. And for rpc we can have it always be set.

@leighmcculloch leighmcculloch changed the title set TESTING_SOROBAN_HIGH_LIMIT_OVERRIDE for standalone network Set TESTING_SOROBAN_HIGH_LIMIT_OVERRIDE for standalone network Sep 19, 2023
@leighmcculloch leighmcculloch self-assigned this Sep 19, 2023
@leighmcculloch leighmcculloch enabled auto-merge (squash) September 19, 2023 00:29
@leighmcculloch leighmcculloch merged commit fadeaeb into stellar:master Sep 19, 2023
@@ -361,6 +362,12 @@ function init_stellar_core() {
run_silent "finalize-core-config-run-local" perl -pi -e "s/__RUN_STANDALONE__/$RUN_STANDALONE/g" etc/stellar-core.cfg
run_silent "finalize-core-config-manual-close" perl -pi -e "s/__MANUAL_CLOSE__/$ENABLE_CORE_MANUAL_CLOSE/g" etc/stellar-core.cfg

if [ "$NETWORK" = "standalone" ] && [ "${CORE_SUPPORTS_TESTING_SOROBAN_HIGH_LIMIT_OVERRIDE}" = "true" ]; then
Copy link
Contributor

Choose a reason for hiding this comment

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

should this be checking for NETWORK=local now?

Copy link
Member

Choose a reason for hiding this comment

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

Yes!

Copy link
Member

Choose a reason for hiding this comment

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

Opened fix in #493

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants