-
Notifications
You must be signed in to change notification settings - Fork 587
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
Default ordering in gRPC responses assumes lexicographic values of Height, not numerical value #1399
Comments
Thank you, @adizere and Anca! |
I suggest we change how we index |
So It turns out we can't do that as @AdityaSripal explain here, he suggested we instead use the metadata stored in tendermint client that does store the consensus state in numbering order. I think that's the best way to kill this problem. Here is what I think we should do in detail :
plz let me know what you guys think. |
Thanks for the summary and suggestions @catShaark
I'm a bit hesitant to do this since it's very tendermint client specific. Ideally we get to a point where we can easily upgrade the 24-host keys without major disruptions. (Connection Upgradability 👀 ). So upgrading core IBC to remove this technical debt will eventually be possible but is not a high priority for us at the moment. Given that, i'd prefer the least disruptive short-term solution to get in for now. Isn't it feasible to just get the consensus states in lexicographical order and then do a numerical sort in the rpc handler itself? If that's not too difficult, that might be fine to do for now. If that isn't feasible then we can look to the next "least disruptive" solution. Also, would be good to understand what if any are the concrete negative effects of this issue. |
@catShaark and I discussed this a few weeks ago and the problem is that even if you order in the handler itself the
@adizere can you (or maybe Anca) please explain us how this problem affects hermes? And how bad would it be if this cannot be solved until we have connection upgradability, as @AdityaSripal mentions in his comment above as the preferred solution? |
This affects Hermes in the sense that whenever the relayer does the The relayer needs to:
if you find it useful, the requirements in all of these examples are as follows:
For complete context, I would add that the |
Anca pointed out that the default ordering in gRPC responses works on lexicographic value of Height, not on their numerical value.
Originally posted by @adizere in #798 (comment)
The text was updated successfully, but these errors were encountered: