You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a new chain is exported from an old chain with chain-id revision number increased, we found that there are existing ibc clients on the new chain inherited from the old chain e.g. 07-tendermint-0, ..1 , ..2 and more.
It turns out when we try to create new ibc client on new chain, it will create new client-id starting from 0 again i.e. 07-tendermint-0 .
This will cause the whole process from creating ibc-client to ibc-connection to ibc-channel failure with following error.
channel handshake open init failed: could not create channel capability for port ID transfer and channel ID channel-0: module: ibc, name: capabilities/ports/transfer/channels/channel-0: capability name already taken
In the above condition, we can still create client and connection which have id start from zero to replace the existing one, but the above error will be returned when creating channel.
It is found that ExportGenesis for client, connection and channel do not include NextClientSequence , NextConnectionSequence and NextChannelSequence respectively. Any reason behind to not include these fields? Otherwise, the new channel will be created from 0 again but it is already taken.
Version
lastest main branch
Steps to Reproduce
Export the genesis from a chain with existing ibc client, connection and channel created,
Run a new chain from exported genesis
Try to create ibc client, connection and channel in the new chain
It will fail in channel creation step
Proposal
Adding back NextClientSequence , NextConnectionSequence and NextChannelSequence to ExportGenesis
For Admin Use
Not duplicate issue
Appropriate labels applied
Appropriate contributors tagged/assigned
The text was updated successfully, but these errors were encountered:
Summary of Bug
When a new chain is exported from an old chain with chain-id revision number increased, we found that there are existing ibc clients on the new chain inherited from the old chain e.g. 07-tendermint-0, ..1 , ..2 and more.
It turns out when we try to create new ibc client on new chain, it will create new client-id starting from 0 again i.e. 07-tendermint-0 .
This will cause the whole process from creating ibc-client to ibc-connection to ibc-channel failure with following error.
In the above condition, we can still create client and connection which have id start from zero to replace the existing one, but the above error will be returned when creating channel.
It is found that ExportGenesis for client, connection and channel do not include NextClientSequence , NextConnectionSequence and NextChannelSequence respectively. Any reason behind to not include these fields? Otherwise, the new channel will be created from 0 again but it is already taken.
Version
lastest main branch
Steps to Reproduce
Proposal
Adding back
NextClientSequence
,NextConnectionSequence
andNextChannelSequence
toExportGenesis
For Admin Use
The text was updated successfully, but these errors were encountered: