Open
Description
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
- create two
[[chain]]
entries that have the sameid = 'agoricstage-14'
field, but different RPC servers, etc. - run
hermes config validate
- results:
$ hermes config validate
Sep 14 20:37:10.378 INFO using default configuration from '/Users/michael/.hermes/config.toml'
error: hermes fatal error: config error:
0: config file has duplicate entry for the chain with id agoricstage-14
Location:
/Users/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/flex-error-0.4.2/src/tracer_impl/eyre.rs:10
Backtrace omitted.
Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
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 same chainID
.
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 same chainID
can function independently.
For Admin Use
- Not duplicate issue
- Appropriate labels applied
- Appropriate milestone (priority) applied
- Appropriate contributors tagged
- Contributor assigned/self-assigned
Activity