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

fix(pd): use proper nanoseconds in tm proxy #2826

Merged
merged 1 commit into from
Jul 13, 2023

Conversation

conorsch
Copy link
Contributor

The gRPCUI service was throwing an error on TendermintProxyService.GetBlockByHeight, with log messages pointing to ns out of range [0, 1000000000]. The relevant pbjson type [0] is not well documented, but consulting the associated protobuf type [1] makes it clear that we want subsecond nanos here.

Closes #2673.

[0] https://docs.rs/pbjson-types/0.5.1/pbjson_types/struct.Timestamp.html
[1] https://protobuf.dev/reference/java/api-docs/com/google/protobuf/Timestamp

The gRPCUI service was throwing an error on `TendermintProxyService.GetBlockByHeight`,
with log messages pointing to `ns out of range [0, 1000000000]`.
The relevant pbjson type [0] is not well documented,
but consulting the associated protobuf type [1] makes it clear that we
want subsecond nanos here.

Closes #2673.

[0] https://docs.rs/pbjson-types/0.5.1/pbjson_types/struct.Timestamp.html
[1] https://protobuf.dev/reference/java/api-docs/com/google/protobuf/Timestamp
@conorsch conorsch temporarily deployed to smoke-test July 12, 2023 22:15 — with GitHub Actions Inactive
@conorsch conorsch merged commit 67c2752 into main Jul 13, 2023
@conorsch conorsch deleted the 2673-fix-getblockbyheight-rpc branch July 13, 2023 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GetBlockByHeight request does not work in GRPCUI
1 participant