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 DISABLE-TX-SUB configuration parameter #4979

Merged
merged 32 commits into from
Aug 29, 2023

Conversation

aditya1702
Copy link
Contributor

@aditya1702 aditya1702 commented Jul 26, 2023

PR Checklist

PR Structure

  • This PR has reasonably narrow scope (if not, break it down into smaller PRs).
  • This PR avoids mixing refactoring changes with feature changes (split into two PRs
    otherwise).
  • This PR's title starts with name of package that is most changed in the PR, ex.
    services/friendbot, or all or doc if the changes are broad or impact many
    packages.

Thoroughness

  • This PR adds tests for the most critical parts of the new functionality or fixes.
  • I've updated any docs (developer docs, .md
    files, etc... affected by this change). Take a look in the docs folder for a given service,
    like this one.

Release planning

  • I've updated the relevant CHANGELOG (here for Horizon) if
    needed with deprecations, added features, breaking changes, and DB schema changes.
  • I've decided if this PR requires a new major/minor version according to
    semver, or if it's mainly a patch change. The PR is targeted at the next
    release branch if it's not a patch change.

What

Closes #4914

  • Introduce a DISABLE-TX-SUB parameter which disables transaction submission functionality for Horizon.
  • Add integration and unit tests for the change.

Why

This change helps separate the transaction submission functionality of Horizon. If users want to just use Horizon as an API layer, they can switch off this functionality.

Known limitations

None

@aditya1702 aditya1702 marked this pull request as ready for review August 10, 2023 15:42
aditya1702 and others added 4 commits August 22, 2023 13:53
This makes it easy for us to check if the flag has been provided by the user or not.
Copy link
Contributor

@sreuland sreuland left a comment

Choose a reason for hiding this comment

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

tests look good! make sure CI tests pass before merge though, noticed one failing, not sure on the reason.

@aditya1702 aditya1702 merged commit bf6fa60 into stellar:master Aug 29, 2023
36 checks passed
@aditya1702 aditya1702 deleted the add-tx-disabled branch August 29, 2023 15:02
urvisavla pushed a commit to urvisavla/go that referenced this pull request Aug 31, 2023
* Add DisableTxSub param

* Add tests

* Add test for ApplyFlags

* Revert "Add tests"

This reverts commit 79562fb.

* Make changes - 1

* Update parameters_test.go

* Add check for INGEST=false and refactor test for help output

* Update integration.go

* Check if integration tests have been enabled

* Remove INGEST=false condition for tx-submission

* Update flags.go

* Make changes - 1

* Make changes - 2

* Make changes - 3

* Change type to String

This makes it easy for us to check if the flag has been provided by the user or not.

* Make changes - 4

* Add tests for different configurations of DISABLE_TX_SUB

* Update parameters_test.go

* Add integration tests checking transaction submission

* Update txsub_test.go

* Update parameters_test.go

* Update parameters_test.go
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

services/horizon: Add "DISABLE_TX_SUB" configuration parameter
4 participants