-
Notifications
You must be signed in to change notification settings - Fork 499
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 "DISABLE_TX_SUB" configuration parameter #4914
Comments
Consider naming these as the inverse (ex. |
This is interesting. Do you mean something like watching database state and seeing that e.g. I think just having a Stellar Core to forward txsub and a valid db connection to should be enough, since the admin will see 504s if their db is not ingesting correctly. Wdyt? |
Yes, that was my understanding as well.
I agree, it seems like that should serve as a sanity check. What do you think @sreuland? |
Suggestion to rename the flag |
yep, that proposed mechanism to detect ingestion may be all that's needed, it would mean invoking a request against |
What problem does your feature solve?
To streamline configuration and enhance flexibility in Horizon, we want to introduce the
TX_SUB_DISABLED
configuration parameter. This parameter enables or disables transaction submission functionality in Horizon.What would you like to see?
Add
DISABLE_TX_SUB
configuration parameter for Transaction Submission in Horizon. This parameter can be set as an environment variable similar to other parameters in Horizon.Key features:
Enable/disable Transaction Submission: By default
DISABLE_TX_SUB
should be set to false. Horizon should accept or reject POST requests with a 405 HTTP error code, method not supported fro the/tx
endpoint based on this setting.Enhance startup validation: When
DISABLE_TX_SUB
is false, Horizon should perform a startup check to make sure data ingestion is happening by checking it's DB and If no ingestion is detected, Horizon should exit with an appropriate error.If either "INGESTION=true" or "DISABLE_TX_SUB=false" is set in the configuration, Horizon should validate incoming config parameters include network config via either the new parameter "NETWORK" or specify the lower level parameters, if not, a startup error should be emitted stating network config is needed. Otherwise, when
DISABLE_TX_SUB=true
andINGEST=false
, all network oriented config params are no longer needed, such asNETWORK
andSTELLAR_CORE_URL
because no core connectivity is required, if the are present, horizon should emit error saying the flags are in conflict.Confirm that Horizon can use captive core's local
HTTP_PORT
to submit transactions or does it need to send to a watcher/validator node? We need to mention this expectation accurately in new config docs.The text was updated successfully, but these errors were encountered: