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

ibc: add grpc queries for connections, channels, and clients #2954

Merged
merged 18 commits into from
Sep 11, 2023
Merged

Conversation

avahowell
Copy link
Contributor

No description provided.

@avahowell
Copy link
Contributor Author

All of the previously implemented ibc queries are implemented now, this just needs to be hooked up to the grpc api

@avahowell avahowell marked this pull request as ready for review August 25, 2023 01:47
@avahowell
Copy link
Contributor Author

Hooked up the grpc api

@avahowell avahowell temporarily deployed to smoke-test August 31, 2023 09:35 — with GitHub Actions Inactive
@avahowell avahowell temporarily deployed to smoke-test August 31, 2023 10:05 — with GitHub Actions Inactive
@avahowell avahowell temporarily deployed to smoke-test August 31, 2023 21:36 — with GitHub Actions Inactive
@hdevalence
Copy link
Member

Looks like this is just blocked on fixing build flags for wasm?

@avahowell avahowell temporarily deployed to smoke-test September 8, 2023 02:53 — with GitHub Actions Inactive
@avahowell avahowell temporarily deployed to smoke-test September 8, 2023 15:08 — with GitHub Actions Inactive
@conorsch
Copy link
Contributor

conorsch commented Sep 8, 2023

Discussed at sprint planning today: we need to land these necessary-but-not-sufficient queries to unblock a Hermes relaying spike. However, further queries are required. For Testnet 60 #2984, we won't have full support merged, but we'll press on with support.

&self,
_request: tonic::Request<QueryClientConnectionsRequest>,
) -> std::result::Result<tonic::Response<QueryClientConnectionsResponse>, tonic::Status> {
todo!()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will make the node panic if we get one of these requests, can we search/replace these todo!() impls with a snippet that returns an Ok with Status::unimplemented ?

Copy link
Member

@hdevalence hdevalence left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's avoid the todo!()s but otherwise this LGTM!

Comment on lines +349 to +359
.add_service(tonic_web::enable(ClientQueryServer::new(ibc.clone())))
.add_service(tonic_web::enable(ChannelQueryServer::new(ibc.clone())))
.add_service(tonic_web::enable(ConnectionQueryServer::new(ibc.clone())))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Non-blocking: going forward, we want to split up the RPCs and move them into the component crates. When we do that, we'll have LOTS of different services to stitch together, and we should figure out how to cleanly add them all. Maybe tower::Layers would be helpful there.

@conorsch
Copy link
Contributor

conorsch commented Sep 8, 2023

We want this in for 60 (#2984). @avahowell is aiming for merge by EOD.

@avahowell avahowell temporarily deployed to smoke-test September 11, 2023 06:58 — with GitHub Actions Inactive
@avahowell avahowell temporarily deployed to smoke-test September 11, 2023 17:11 — with GitHub Actions Inactive
@conorsch conorsch dismissed hdevalence’s stale review September 11, 2023 17:54

comments have been addressed

@conorsch conorsch merged commit 078c0bb into main Sep 11, 2023
@conorsch conorsch deleted the pd-ibc-grpc branch September 11, 2023 17:55
conorsch added a commit to penumbra-zone/galileo that referenced this pull request Sep 11, 2023
conorsch added a commit to penumbra-zone/galileo that referenced this pull request Sep 11, 2023
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.

3 participants