-
Notifications
You must be signed in to change notification settings - Fork 504
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/ingest: add SKIP_TXMETA #5208
/services/horizon/ingest: add SKIP_TXMETA #5208
Conversation
…oban ingestion processing (stellar#5176)" This reverts commit bfaf9e1.
…meta in transaction model, removed DISABLE_SOROBAN_INGEST, use SKIP_META instead
// TODO, generate TxChangesAfter also | ||
//assert.Greater(t, len(txMetaResult.MustV2().TxChangesAfter), 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you know of any operations that would trigger TxChangesAfter, i tried several and FeeBumps, but only generated TxChangesBefore.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think soroban refunds can appear in TxChangesAfter:
but if this case is difficult to produce, I think you can just delete the commented out code
* Revert "services/horizon: Add DISABLE_SOROBAN_INGEST flag to skip soroban ingestion processing (stellar#5176)" This reverts commit bfaf9e1. * stellar#5189: added optional SKIP_TXMETA parameter to not persist tx meta in transaction model, removed DISABLE_SOROBAN_INGEST, use SKIP_META instead
PR Checklist
PR Structure
otherwise).
services/friendbot
, orall
ordoc
if the changes are broad or impact manypackages.
Thoroughness
.md
files, etc... affected by this change). Take a look in the
docs
folder for a given service,like this one.
Release planning
needed with deprecations, added features, breaking changes, and DB schema changes.
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
Added new
SKIP_TXMETA
. Defaults toFALSE
. WhenTRUE
the transaction model for classic or soroban tx's won't have tx meta populated anymore, on database, history_transactions.tx_meta column will have serialized xdr that equates to empty for any protocol version, such as for protocol 20,xdr.TransactionMeta.V3
,Operations
,TxChangesAfter
,TxChangesBefore
will be empty arrays andSorobanMeta
will be nil and API responses with transaction model will have same empty/nil.Removed
DISABLE_SOROBAN_INGEST
configuration parameter and it's cohort by reverting #5176, it did similar tx-meta removal but was limited to just soroban specific,SKIP_TXMETA
parameter instead and removed parsing effects/ops aspects derived from tx-meta, which wasn't needed.Why
to prevent extended storage space needs on db.
Closes #5189
Known limitations