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

Add support for captive core (standalone) and manual close #212

Merged

Conversation

2opremio
Copy link
Contributor

This PR adds support for Horizon's captive-core mode (only in the standalone network for now) and Core's Manual close mode.

Both are needed in the context of stellar/go#3153 . More context at stellar/go#3144 (comment)

@2opremio
Copy link
Contributor Author

2opremio commented Oct 27, 2020

Note: for now this only works with Horizon's master, because (before stellar/go#3101 ) STELLAR_CORE_BINARY_PATH=/whatever/path used to imply enabling captive-core. I will work on a fix.

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.

LGTM! Would be great to add extra case to testing matrix in Travis to check if everything works in standalone network.

if [ "$NETWORK" != "standalone" ] && [ "$ENABLE_HORIZON_CAPTIVE_CORE" = "true" ]; then
echo "--enable-horizon-captive-core is only supported in the standalone network" >&2
exit 1
fi
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't we have the same check for ENABLE_CORE_MANUAL_CLOSE?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, that should work for all networks

@2opremio
Copy link
Contributor Author

2opremio commented Oct 27, 2020

Note: for now this only works with Horizon's master, because (before stellar/go#3101 ) STELLAR_CORE_BINARY_PATH=/whatever/path used to imply enabling captive-core. I will work on a fix.

This has been addressed by 3df870e

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