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

config file for multiple chains #269

Closed
HikaruG opened this issue Apr 22, 2024 · 1 comment
Closed

config file for multiple chains #269

HikaruG opened this issue Apr 22, 2024 · 1 comment

Comments

@HikaruG
Copy link

HikaruG commented Apr 22, 2024

Question

I would like to know how I should add chain B to an existing horcrux cluster for chain A.

Context

Current config for chain A's horcrux 3-2 setup:

signMode: threshold
thresholdMode:
  threshold: 2
  cosigners:
  - shardID: 1
    p2pAddr: tcp://172.31.0.X:2222
  - shardID: 2
    p2pAddr: tcp://172.31.0.Y:2222
  - shardID: 3
    p2pAddr: tcp://172.31.0.X:2222
  grpcTimeout: 1000ms
  raftTimeout: 1000ms
chainNodes:
- privValAddr: tcp://<public-ip1>:1234
- privValAddr: tcp://<public-ip2>:1234
debugAddr: ""
grpcAddr: ""

I would like to use the same signers X,Y,Z which would connect to chain B's fullnodes public-ip3 and public-ip4
From v3 docs it seems feasible as you can create sharded-keys for different chains, but I couldn't find information as to how to modify the config file.

Any help would be greatly appreciated!

@agouin
Copy link
Member

agouin commented Apr 22, 2024

You can simply add the additional chain sentries to the chainNodes section. Horcrux determines the chain ID from the sign requests that come from the sentries to know which shard to sign with.

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

3 participants