Skip to content

Default ordering in gRPC responses assumes lexicographic values of Height, not numerical value #1399

Open
@adizere

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)

Metadata

Assignees

No one assigned

    Labels

    client-UXneeds discussionIssues that need discussion before they can be worked ontype: bugSomething isn't working as expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions