-
Notifications
You must be signed in to change notification settings - Fork 351
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
Cannot configure multiple chains with the same chain_id
#1353
Comments
Another solution could be to introduce a |
Hi Michael, thanks for detailing the issue! Hermes uses the chain-id from config.toml extensively in CLIs. So for instance when a user runs If you explain your use-case in more detail, maybe we can find a workaround. |
Hi Adi,
I mean the
Will do: If a chain has a If Hermes cannot distinguish between the two chains, then that seems like a (potentially security) bug. It's not robust to assume that all My use case is if there is are non-unique |
chainID
should not be assumed to be uniquechain_id
Thanks for the additional details, Michael, in particular the use-case description is very helpful. Changing the the way Hermes uses the config.toml would involve some non-trivial changes in the way we do logging/telemetrics and potentially the runtime. How important and urgent is this requirement for non-unique chain identifiers, Michael? We will check with other Hermes users and see if there is value in this change (even beyond what we discussed here). We are mostly focusing on trying to keep up with bug reports and general robustness issues, but you are raising an important user experience problem here. |
For me, it is of medium importance (something that should eventually be addressed) but not urgent. I just saw this when trying to understand the meaning of the Thanks for listening, and please triage as you see fit. |
Adding here some meeting notes after discussing with Cephalopod, which has potentially similar requirements but coming from a different angle. There may be some value in allowing the same chain to appear twice in the config.toml,
Two caveats:
Just to emphasize that the notes above here refer to allowing same chain having different contact points as opposed to different chains with the same identifier. Though the fix/consequence may be the same. This needs more thinking through, with concrete user-flows. |
Crate
ibc-relayer (hermes)
Summary of Bug
The
.hermes/config.toml
file cannot express two different chains with the same chainId.Version
v0.7.0
Steps to Reproduce
[[chain]]
entries that have the sameid = 'agoricstage-14'
field, but different RPC servers, etc.hermes config validate
Acceptance Criteria
Chain configuration should provide some other field (possibly defaulting to the
id
field's value) that can be used to disambiguate two different chains that happen to have the samechainID
.That new field should be the name used for the entries in the
.hermes/keys
directory, and any other persisted state, so that the two chains with the samechainID
can function independently.For Admin Use
The text was updated successfully, but these errors were encountered: