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

[Question] consumer chain relayer configuration problem #4281

Open
Roc8Trppn opened this issue Dec 17, 2024 · 0 comments
Open

[Question] consumer chain relayer configuration problem #4281

Roc8Trppn opened this issue Dec 17, 2024 · 0 comments

Comments

@Roc8Trppn
Copy link

Hi,

I have a problem to get the provider to validate the consumer (running both locally on the same machine).

I've followed this article [https://tutorials.ignite.com/build-your-interchain-security-consumer-chain/]

And to summarise the steps:

  1. cloned and set-up the provider
  2. scaffolded a consumer chain via ignite
  3. created and voted with yes on a consumer addition proposal
  4. waited for the spawn time to pass
  5. copied ccvconsumer part into genesis.json of the consumer chain
  6. run the consumer with interchain-security-cd binary

Now the next step would be:

  • create a connection hermes create connection --a-chain <consumer chain ID> --a-client 07-tendermint-0 --b-client <provider chain client ID>

and here is where I get the error:

hermes query client status --chain ccv-1 --client 07-tendermint-0 2024-12-17T17:18:20.125168Z INFO ThreadId(01) using default configuration from '/Users/username/.hermes/config.toml' 2024-12-17T17:18:20.126545Z INFO ThreadId(01) running Hermes v1.10.4+542e14f 2024-12-17T17:18:20.465493Z WARN ThreadId(01) Failed to fetch version specs for chain 'ccv-1': ABCI query returned an error: AbciQuery { code: Err(26), log: "interchain-security-c is not ready; please wait for first block: invalid height", info: "", index: 0, key: [], value: [], proof: None, height: block::Height(0), codespace: "sdk" } 2024-12-17T17:18:20.465915Z WARN ThreadId(01) Will fall back on using the node version: 0.38.9 ERROR error decoding protobuf: error converting message type into domain type: the client state was not found

also when i run hermes start I always get the error

2024-12-17T17:14:00.485616Z ERROR ThreadId(01) spawn: failed to spawn worker for a chain, reason: query: gRPC call query_clients failed with status: status: Unknown, message: "codespace sdk code 26: invalid height: interchain-security-c is not ready; please wait for first block", details: [], metadata: MetadataMap { headers: {"content-type": "application/grpc"} } 2024-12-17T17:14:00.494022Z DEBUG ThreadId(19) event_so

So, if I understood correctly, in order to validate the first block of the consumer chain, there has to be an active IBC channel in order to send the validator set from the provider to the consumer.
But in order to establish a proper connection, the consumer needs to be at least at height 1 (i.e. have the 1 block validated) 🤯

Quite a dead end here!

I'd really appreciate any sort of help here...Even just to figure out if it is a relayer issue or a interchain-security issue...

Here is the hermes .config file:

[global]
log_level = "debug"

[mode]

[mode.clients]
enabled = true
refresh = true
misbehaviour = true

[mode.connections]
enabled = true

[mode.channels]
enabled = true

[mode.packets]
enabled = true
clear_interval = 100
clear_on_start = true
tx_confirmation = false
auto_register_counterparty_payee = false

[[chains]]
id = "provider"   
type = "CosmosSdk"
rpc_addr = "http://localhost:26658"       # Replace with the correct RPC address of the provider chain
grpc_addr = "http://localhost:9091"       # Replace with the correct gRPC address of the provider chain
rpc_timeout = "10s"
account_prefix = "cosmos"                # Change if your provider chain has a different prefix
key_name = "prov-key"                # Name of the key you will import into Hermes
store_prefix = "ibc"
default_gas = 1000000
max_gas = 4000000
gas_multiplier = 1.5
max_msg_num = 30
max_tx_size = 180000
max_grpc_decoding_size = 33554432
clock_drift = "5s"
max_block_time = "30s"
ccv_consumer_chain = false
memo_prefix = ""
sequential_batch_tx = false

[chains.event_source]
mode = "push"
url = "ws://localhost:26658/websocket"
batch_delay = "500ms"

[chains.trust_threshold]
numerator = "1"
denominator = "3"

[chains.gas_price]
price = 0.025
denom = "stake"

[chains.packet_filter]
policy = "allow"
list = [["transfer", "channel-1"], ["ccv-provider", "*"], ["ccv-consumer", "*"]]

[chains.packet_filter.min_fees]

[chains.address_type]
derivation = "cosmos"

[[chains]]
id = "ccv-1"                     
type = "CosmosSdk"
rpc_addr = "http://localhost:26657"       # Replace with the correct RPC address of the consumer chain
grpc_addr = "http://localhost:9090"       # Replace with the correct gRPC address of the consumer chain
rpc_timeout = "10s"
account_prefix = "cosmos"                # Change if your consumer chain has a different prefix
key_name = "cons-key"                # Name of the key you will import into Hermes
key_store_type = "Test"
store_prefix = "ibc"
default_gas = 2000000
max_gas = 4000000
gas_multiplier = 1.5
max_msg_num = 30
max_tx_size = 180000
max_grpc_decoding_size = 33554432
clock_drift = "5s"
max_block_time = "30s"
memo_prefix = ""
sequential_batch_tx = false
ccv_consumer_chain = true

[chains.event_source]
mode = "push"
url = "ws://localhost:26657/websocket"
batch_delay = "500ms"

[chains.trust_threshold]
numerator = "1"
denominator = "3"

[chains.gas_price]
price = 0.1
denom = "stake"

[chains.packet_filter]
policy = "allow"
list = [["transfer", "channel-1"], ["ccv-provider", "*"], ["ccv-consumer", "*"]]

[chains.packet_filter.min_fees]

[chains.address_type]
derivation = "cosmos"
@github-project-automation github-project-automation bot moved this to 🩹 Triage in Hermes Dec 17, 2024
@Roc8Trppn Roc8Trppn changed the title [Question] [Question] consumer chain relayer configuration problem Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🩹 Triage
Development

No branches or pull requests

1 participant