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

Adjust local-cluster to include Bryon/Shelley/AlonzoGenesisHash in the node.config file that is generated #3162

Open
jbax opened this issue Mar 6, 2022 · 1 comment
Labels
ADDING FEATURE Mark a PR as adding a new feature, for auto-generated CHANGELOG IMPROVEMENT Mark a PR as an improvement, for auto-generated CHANGELOG

Comments

@jbax
Copy link

jbax commented Mar 6, 2022

The problem that you wish to solve

I'm doing some local tests using the local-cluster (https://github.com/input-output-hk/cardano-wallet/blob/master/lib/shelley/exe/local-cluster.hs) but making that work with cardano-db-sync is being problematic because I need to manually edit the generated node.config file (under /tmp/test-cluster*/node) and add the following:

ByronGenesisHash: <byron genesis hash>
ShelleyGenesisHash: <shelley genesis hash>
AlonzoGenesisHash: <alonzo genesis hash>

Description

Currently I'm having manually figure the hashes out with this:

cardano-cli byron genesis print-genesis-hash --genesis-json /tmp/test-cluster757671/node/byron-genesis.json
cardano-cli genesis hash --genesis /tmp/test-cluster757671/node/shelley-genesis.json
cardano-cli genesis hash --genesis /tmp/test-cluster757671/node/alonzo-genesis.json

Then edit the config file manually. It would be great if people didn't have to figure this out on their own.

Implementation suggestions

No response

@jbax jbax added ADDING FEATURE Mark a PR as adding a new feature, for auto-generated CHANGELOG IMPROVEMENT Mark a PR as an improvement, for auto-generated CHANGELOG labels Mar 6, 2022
@jbax
Copy link
Author

jbax commented Mar 6, 2022

Also when starting cardano-db-sync connected to this cluster it stops with the following error:

Error: validateGenesisDistribution: LovelaceTooLarge 210116000000000215

It would be great if the local-cluster could be used by other components without errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ADDING FEATURE Mark a PR as adding a new feature, for auto-generated CHANGELOG IMPROVEMENT Mark a PR as an improvement, for auto-generated CHANGELOG
Projects
None yet
Development

No branches or pull requests

1 participant