Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
v0.37.x:state/kvindexer: port 0.34 query fix #77
v0.37.x:state/kvindexer: port 0.34 query fix #77
Changes from 25 commits
b6d99be
6fe2b13
b9f5a5b
bd9ed68
c52ffdc
65dac51
44113d7
bc44f40
2ef62aa
b677ace
f7a0740
81c37b4
5f84a1e
4cfc9cb
ca08390
16ffabc
81caedc
225e7d6
8db6226
233fd53
6ccb03e
34c3cff
52ab759
2efdd22
896b509
8589f14
3796592
1d25966
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Can we use something derived from Height as values?
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'll clean this up a bit, you are right we could add the % condition in the event value. In principle, the only reason why I separated these two use cases is to make sure there are events that do not occur at every height.
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.
Not a problem with this PR.
Line 163 states that "TM does not expose functionality to define which events to index and which to ignore." but isn't the field "Index" in the event exactly for this?
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.
Hmm you are right, these two sentences at the beginning are really a bit contradicting each other:
"Applications are free to define which events to index. Tendermint does not
expose functionality to define which events to index and which to ignore."
The index field is indeed set by the application if the event is to be indexed. I don't know what the original author was referring to with "TM does not ..." .. I will edit this paragraph.