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

txindexer v0.34.x: Enable the indexer to parse slashes in query #383

Merged
merged 5 commits into from
Feb 25, 2023

Conversation

jmalicevic
Copy link
Contributor

The transaction indexer indexes transaction events by creating a custom key containing the following:

  • event attribute key
  • event attribute value
  • txresult
  • height
  • event sequence

These elements are separated with a '/'. This however causes problems when the value (over which we have no control), contains a '/' . This PR fixes this by making sure to isolate the element containing the value.

The code was tested for backwards compatibility, making sure we can parse events indexed with older versions of Tendermint (without this fix).


PR checklist

  • Tests written/updated
  • Changelog entry added in .changelog (we use unclog to manage our changelog)
  • Updated relevant documentation (docs/ or spec/) and code comments

@jmalicevic jmalicevic requested a review from a team as a code owner February 24, 2023 12:18
@jmalicevic jmalicevic self-assigned this Feb 24, 2023
state/txindex/kv/kv_test.go Outdated Show resolved Hide resolved
@thanethomson thanethomson mentioned this pull request Feb 24, 2023
3 tasks
@jmalicevic jmalicevic merged commit 2bd50e0 into v0.34.x Feb 25, 2023
@jmalicevic jmalicevic deleted the jasmina/kvindex-slash-parsing-0.34 branch February 25, 2023 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants