-
Notifications
You must be signed in to change notification settings - Fork 359
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
failed while querying src chain for latest height
#3620
Comments
This error message is confusing b/c it claims that the source chain is mocha-4 but mocha-4 is the reference chain in the command:
Update: Disregard. In the code here: src chain == reference chain and dst chain == host chain. |
It looks like it is calling hermes/crates/relayer/src/chain/handle.rs Line 434 in 070f60d
|
My config.toml: https://gist.github.com/rootulp/fb3573c8fb64378c53014cc0a8807cff |
There were a lot of layers of indirection but I found hermes/crates/relayer/src/chain/cosmos.rs Lines 1115 to 1145 in 1c1cf02
https://rpc-celestia-mocha.architectnodes.com/abci_info? has
so last_block_height = 77966 but I don't see a both RPC providers contain a
Celestia hits this warning because celestiaorg/celestia-app#2516 |
I was able to resolve by falling back to Tendermit v0.34 instead of v0.37. In other words: $ git diff
diff --git a/crates/relayer-cli/src/commands/listen.rs b/crates/relayer-cli/src/commands/listen.rs
index c7b779529..34b3dd2fe 100644
--- a/crates/relayer-cli/src/commands/listen.rs
+++ b/crates/relayer-cli/src/commands/listen.rs
@@ -177,8 +177,8 @@ fn detect_compatibility_mode(
let client = HttpClient::new(config.rpc_addr.clone())?;
let status = rt.block_on(client.status())?;
let compat_mode = CompatMode::from_version(status.node_info.version).unwrap_or_else(|e| {
- warn!("Unsupported tendermint version, will use v0.37 compatibility mode but relaying might not work as desired: {e}");
- CompatMode::V0_37
+ warn!("Unsupported tendermint version, will use v0.34 compatibility mode but relaying might not work as desired: {e}");
+ CompatMode::V0_34
});
Ok(compat_mode)
}
diff --git a/crates/relayer/src/chain/cosmos.rs b/crates/relayer/src/chain/cosmos.rs
index 29c89cc7b..2f73ea848 100644
--- a/crates/relayer/src/chain/cosmos.rs
+++ b/crates/relayer/src/chain/cosmos.rs
@@ -875,8 +875,8 @@ impl ChainEndpoint for CosmosSdkChain {
let node_info = rt.block_on(fetch_node_info(&rpc_client, &config))?;
let compat_mode = CompatMode::from_version(node_info.version).unwrap_or_else(|e| {
- warn!("Unsupported tendermint version, will use v0.37 compatibility mode but relaying might not work as desired: {e}");
- CompatMode::V0_37
+ warn!("Unsupported tendermint version, will use v0.34 compatibility mode but relaying might not work as desired: {e}");
+ CompatMode::V0_34
});
rpc_client.set_compat_mode(compat_mode); Can close this issue for now b/c a temporary fix has been identified. Will open a new issue for a long term fix (i.e. ability to specify in hermes Config file for a chain which Tendermint version to use if abci_info doesn't return expected response). |
Hi @rootulp, just wanted to say thanks for circling back and updating this issue after you found a working temporary fix, as well as for opening the follow up issue 🙂 |
Context
I'm trying to set up IBC clients between two tesnets:
Problem
I was able to create a client on mocha-4
However, I can't create the other client
However, as far as I can tell, the RPC URL of mocha-4 is a superset of the methods available on Cosmos hub testnet.
Note: I have tried a few other RPC URLs for mocha-4 from RPC endpoints: https://docs.celestia.org/nodes/mocha-testnet/#rpc-endpoints
Proposal
Include more information in the error. For example which method was not found?
The text was updated successfully, but these errors were encountered: