Skip to content

Cannot configure multiple chains with the same chain_id #1353

Open
@michaelfig

Description

@michaelfig

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

  1. create two [[chain]] entries that have the same id = 'agoricstage-14' field, but different RPC servers, etc.
  2. run hermes config validate
  3. 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A: questionAdmin: further information is requestedO: new-featureObjective: cause to add a new feature or supportO: usabilityObjective: cause to improve the user experience (UX) and ease using the product

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions