Default ordering in gRPC responses assumes lexicographic values of Height, not numerical value #1399
Open
Description
Anca pointed out that the default ordering in gRPC responses works on lexicographic value of Height, not on their numerical value.
Here is an example (trimmed from an actual query). If the chain has states for heights:
830, 821, 766, 222, 104, 76, 30, 25, 20, 10
The gRPC query (QueryConsensusStatesRequest
) returns:
10, 104, 20, 222, 25, 30, 76, 766, 8, 821, 830
Originally posted by @adizere in #798 (comment)