-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
EPIC: gRPC requirements for IBC relayers #11012
Comments
Thanks for creating this issue. Agree that we should have relayers utilize gRPC as much as possible. Some of those endpoints you've listed are Tendermint endpoints and do not have gRPC options. For the application endpoints, we should definitely encourage gRPC usage. Also, having this issue reside in the SDK probably won't get us much. Perhaps consider opening the same issue in both Hermes and go-relayer repos? |
Thanks for the quick feedback!
I was considering this originally. But I decided against having the issue in Hermes/go-relayer repos because the work does not belong to either of those repos. To be concrete: These are requirements on any IBC-enabled chain (such as the SDK), they should inform the SDK (but perhaps more concretely IBC-go) roadmap. Happy to move the issue around (maybe to the IBC-go repo) if I'm misunderstanding something, but given my current understanding the present repo seem most appropriate, let me know otherwise.
Good point! The boundary Tendermint/SDK is unclear to me, it is necessary to triage them into SDK vs. Tendermint before we can make progress. Nevertheless, following the same logic as above: I'm curious if it's feasible a long-term SDK roadmap that ensures all these requirements being satisfied via a single interface such as gRPC. Or is IBC-go more appropriate? |
Well what do you wish to be done in the SDK? |
There is a balance to strike between tendermint and the sdk. The biggest issue from talking to folks is abci_query because it holds a mutex at the abci layer. Moving this to grpc and allowing parallel queries should alleviate this, but don't think we should try to wrap the entire rpc in the sdk. |
Thanks Aleksandr and Marko for the input, appreciate it! I changed the PR description to focus on the
I only have a naive answer at the moment (along the lines of: "let's work on wrapping everything in gRPC"). Hope it's cool to keep this issue open while gathering more understanding on which endpoints (in addition to |
from the above list I only see a need to support these. We are lady support tx_search and block search but it's non deterministic and may be deprecated in the future, we shouldn't rely on it. seems like the only thing missing is status which we can do as a wrapper. |
For the gRPC
Currently in Hermes relayer, we need 2 separate queries to obtain the latest info regarding the application status. It is very awkward. For completeness, this is what we currently do:
|
Late to the party here but wanted to provide a list of RPC endpoints that the go-relayer is using. We use almost all of the ones that @adizere has already mentioned but the go-relayer also utilizes:
it's not immediately clear to me which of these are relevant to the conversation here but I was linked to this issue and figured I'd chip in as one of the primary maintainers of the go-relayer |
I can add the latter two to status, will amend my pr. Never late 😄 |
I am also late to the party and like @jtieri, I work for Strangelove. My perspective is that of a node operator. I am hoping (and it appears that) the move to gRPC is optional and the original JSON-REST endpoints will not go away. I'm advocating we keep REST in the unlikely event the endpoints are planning to be deprecated. In short, supporting http2 over the public internet is more challenging for a node operator. I'm a fan of gRPC and am aware its many advantages. However, there are some disadvantages:
|
nothing is being removed, this is only adding an endpoint to allow relayers to use grpc if they would like. The JSON-REST endpoints are a comet notion, cosmos-sdk provides the grpc on top |
I am also late to the party.. it seems to me that hermes also falls back to RPC to hit some of the endpoints @jtieri mentioned. Specific question- is it possible to update a client without hitting RPC? Afaict it's still needed to get a SignedHeader (i.e. the |
Summary
IBC relayers such as the go-relayer and Hermes still use the RPC endpoint of full nodes. For easier interoperability, relayers should ideally switch completely to using the gRPC interface. That is a very long way to go, so in the meantime we'll focus on the most important endpoints that should be transitioned from RPC to gRPC.
Problem Definition
Highest priority
/abci_query
:Complete list
This is the complete list of RPC endpoints that Hermes is currently (v0.10 ~January 2022) using:
/status
:node_info.id
, for initializing the light client component/tx_search
:/block_search
and/block_results
:/consensus_params
:consensus_params.block.max_bytes
parameter, for health check./genesis
/abci_query
:/broadcast_tx_sync
/health
:For Admin Use
The text was updated successfully, but these errors were encountered: