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

Error creating IBC client between ICS chain and non-ics chain #1254

Closed
keyleu opened this issue Sep 11, 2024 · 2 comments
Closed

Error creating IBC client between ICS chain and non-ics chain #1254

keyleu opened this issue Sep 11, 2024 · 2 comments
Assignees

Comments

@keyleu
Copy link

keyleu commented Sep 11, 2024

On local-interchain, using the latest version of Neutron with ICS, when adding another chain and trying to connect them via IBC (in this case Juno) I'm getting the following error:

Error: error creating clients: failed to create client on dst chain{localjuno-1}: failed to get trusting period for chain{localneutron-1}: failed to query unbonding period from ccvconsumer, staking & fallback : ccvconsumer UnbondingPeriod is empty: failed to make staking params request: rpc error: code = Unknown desc = staking: unknown subspace: unknown request : rpc error: code = Unknown desc = unknown query path: unknown request\n"}

This is the config I'm using:

{
    "chains": [
        {
            "name": "gaia",
            "chain_id": "localcosmos-1",
            "denom": "uatom",
            "binary": "gaiad",
            "bech32_prefix": "cosmos",
            "docker_image": {
                "version": "v15.0.0-rc2"
            },
            "gas_prices": "0%DENOM%",
            "chain_type": "cosmos",
            "coin_type": 118,
            "trusting_period": "336h",
            "gas_adjustment": 1.3,
            "number_vals": 1,
            "number_node": 0,
            "debugging": true,
            "block_time": "1s",
            "genesis": {
                "modify": [
                    {
                        "key": "app_state.gov.params.voting_period",
                        "value": "3s"
                    },
                    {
                        "key": "app_state.interchainaccounts.host_genesis_state.params.allow_messages",
                        "value": [
                            "/cosmos.bank.v1beta1.MsgSend",
                            "/cosmos.bank.v1beta1.MsgMultiSend",
                            "/cosmos.staking.v1beta1.MsgDelegate",
                            "/cosmos.staking.v1beta1.MsgUndelegate",
                            "/cosmos.staking.v1beta1.MsgBeginRedelegate",
                            "/cosmos.staking.v1beta1.MsgRedeemTokensforShares",
                            "/cosmos.staking.v1beta1.MsgTokenizeShares",
                            "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward",
                            "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress",
                            "/ibc.applications.transfer.v1.MsgTransfer"
                        ]
                    }
                ],
                "accounts": [
                    {
                        "name": "acc0",
                        "address": "cosmos1hj5fveer5cjtn4wd6wstzugjfdxzl0xpxvjjvr",
                        "amount": "20000000000000%DENOM%",
                        "mnemonic": "decorate bright ozone fork gallery riot bus exhaust worth way bone indoor calm squirrel merry zero scheme cotton until shop any excess stage laundry"
                      }
                ]
            }
        },
        {
            "name": "neutron",
            "chain_id": "localneutron-1",
            "denom": "untrn",
            "binary": "neutrond",
            "bech32_prefix": "neutron",
            "docker_image": {
                "version": "latest",
                "repository": "neutron-node"
            },
            "ics_version_override": {
                "provider": "v3.3.x",
                "consumer": "v4.x"
            },
            "gas_prices": "0.025untrn,0.0uatom",
            "chain_type": "cosmos",
            "coin_type": 118,
            "trusting_period": "336h",
            "gas_adjustment": 1.3,
            "number_vals": 1,
            "number_node": 0,
            "ics_consumer_link": "localcosmos-1",
            "ibc_paths": ["neutron-juno"],
            "debugging": true,
            "block_time": "1s",
            "genesis": {
                "modify": [
                    {
                        "key": "consensus.params.block.max_gas",
                        "value": "100000000"
                    },
                    {
                        "key": "app_state.ccvconsumer.params.reward_denoms",
                        "value": [
                            "untrn"
                        ]
                    },
                    {
                        "key": "app_state.ccvconsumer.params.reward_denoms",
                        "value": [
                            "untrn"
                        ]
                    },
                    {
                        "key": "app_state.ccvconsumer.params.provider_reward_denoms",
                        "value": [
                            "uatom"
                        ]
                    },
                    {
                        "key": "app_state.globalfee.params.minimum_gas_prices",
                        "value": [
                            {
                                "denom": "untrn",
                                "amount": "0"
                            }
                        ]
                    },
                    {
                        "key": "app_state.feemarket.params.enabled",
                        "value": false
                    },
                    {
                        "key": "app_state.feeburner.params.treasury_address",
                        "value": "neutron1hj5fveer5cjtn4wd6wstzugjfdxzl0xpznmsky"
                    },
                    {
                        "key": "app_state.tokenfactory.params.fee_collector_address",
                        "value": "neutron1hj5fveer5cjtn4wd6wstzugjfdxzl0xpznmsky"
                    },
                    {
                        "key": "app_state.interchainaccounts.host_genesis_state.params.allow_messages",
                        "value": [
                            "/cosmos.bank.v1beta1.MsgSend",
                            "/cosmos.bank.v1beta1.MsgMultiSend",
                            "/cosmos.staking.v1beta1.MsgDelegate",
                            "/cosmos.staking.v1beta1.MsgUndelegate",
                            "/cosmos.staking.v1beta1.MsgBeginRedelegate",
                            "/cosmos.staking.v1beta1.MsgRedeemTokensforShares",
                            "/cosmos.staking.v1beta1.MsgTokenizeShares",
                            "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward",
                            "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress",
                            "/ibc.applications.transfer.v1.MsgTransfer",
                            "/ibc.lightclients.localhost.v2.ClientState",
                            "/ibc.core.client.v1.MsgCreateClient",
                            "/ibc.core.client.v1.Query/ClientState",
                            "/ibc.core.client.v1.Query/ConsensusState",
                            "/ibc.core.connection.v1.Query/Connection"
                        ]
                    }
                ],
                "accounts": [
                    {
                        "name": "acc0",
                        "address": "neutron1hj5fveer5cjtn4wd6wstzugjfdxzl0xpznmsky",
                        "amount": "10000000000000%DENOM%",
                        "mnemonic": "decorate bright ozone fork gallery riot bus exhaust worth way bone indoor calm squirrel merry zero scheme cotton until shop any excess stage laundry"
                      }
                ]
            }
        },
        {
            "name": "juno",
            "chain_id": "localjuno-1",
            "denom": "ujuno",
            "binary": "junod",
            "bech32_prefix": "juno",
            "docker_image": {
                "repository": "ghcr.io/strangelove-ventures/heighliner/juno",
                "version": "v23.1.0"
            },
            "gas_prices": "0%DENOM%",
            "chain_type": "cosmos",
            "coin_type": 118,
            "trusting_period": "336h",
            "gas_adjustment": 2.0,
            "number_vals": 1,
            "number_node": 0,
            "ibc_paths": ["neutron-juno"],
            "block_time": "1s",
            "debugging": true,
            "genesis": {
                "modify": [
                    {
                        "key": "app_state.gov.params.voting_period",
                        "value": "15s"
                    },
                    {
                        "key": "app_state.gov.params.max_deposit_period",
                        "value": "15s"
                    },
                    {
                        "key": "app_state.gov.params.min_deposit.0.denom",
                        "value": "ujuno"
                    }
                ],
                "accounts": [
                    {
                        "name": "acc0",
                        "address": "juno1hj5fveer5cjtn4wd6wstzugjfdxzl0xps73ftl",
                        "amount": "10000000000000%DENOM%",
                        "mnemonic": "decorate bright ozone fork gallery riot bus exhaust worth way bone indoor calm squirrel merry zero scheme cotton until shop any excess stage laundry"
                      }
                ]
            }
        }
    ]
}

Removing the "ibc-paths" works and with older version of neutron pre sdkv50 also works

@Reecepbcups Reecepbcups self-assigned this Sep 11, 2024
@Reecepbcups
Copy link
Member

note to self; most likely a relayer issue. test locally w/ latest relayer (if not already in ICT already), else open relayer issue if one is not already present.

@Reecepbcups
Copy link
Member

Confirmed this is a relayer issue and is out of scope for local-ic as its upstream

Closing this ticket & opening a rly issue with link back here

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

No branches or pull requests

2 participants