0

i have a problem when running cardano-node 1.31.0 mainnet on an ec2 linux pn aws

I become the following error: Shelley related: Wrong genesis file: the actual hash is "dec31b6d760b1ee8dc82d66eaa92fd492891f17db2565b666c43490a6cde72ab", but the expected genesis hash given in the node configuration file is "1a3be38bcbb7911969283716ad7aa550250226b76a61fc51cc9a9a35d9276d81"

I have tried the config files from the latest recommended build 8111119 and from the build mentioned in the official tutorial 7370192 but it doesn't work.

http://hydra.iohk.io/build/8111119/download/1/.. http://hydra.iohk.io/build/7370192/download/1/..

Which cardano node version is recommended to run on the mainnet on linux actually? And which config files should be run with it to be compatible?

Thanks a lot

1

3 Answers 3

0

The main config (mainnet-config or testnet-config) file contains the hash of the related genesis files:

  "AlonzoGenesisFile": "mainnet-alonzo-genesis.json",
  "AlonzoGenesisHash": "7e94a15f55d1e82d10f09203fa1d40f8eede58fd8066542cf6566008068ed874",
...
  "ByronGenesisFile": "mainnet-byron-genesis.json",
  "ByronGenesisHash": "5f20df933584822601f9e3f8c024eb5eb252fe8cefb24d1317dc3d432e940ebb",
...
  "ShelleyGenesisFile": "mainnet-shelley-genesis.json",
  "ShelleyGenesisHash": "1a3be38bcbb7911969283716ad7aa550250226b76a61fc51cc9a9a35d9276d81",

This is to ensure that all the configurations are in sync.

It might have happenned that you either edited the shelley-genesis or that one is coming from a different batch of config files, and you've just updated the main one without updating the genesis files.

You could try downloading all config files from the same hydra build so that the hashes are correct, or edit the config file accordingly to contain your genesis file hashes, or delete that line ShelleyGenesisHash if you want to skip the hash checks (not recommended)

0

You have to make sure that your mainnet-shelley-genesis.json is exactly the one you downloaded from there. Adding even a single newline at the end of the file will change the hash. Opening it in an editor might do this, even if you do not change it yourself.

0

I know this is late but I hope someone will find this helpful in the future. After hours of troubleshooting I found out that using the command line and using wget or curl on the url http://hydra.iohk.io/build/7370192/download/1/ inside the directory your working with will download the config and genesis files with the correct hash. Hope this helps, Cheers.

eg:

wget https://hydra.iohk.io/build/13695229/download/1/testnet-config.json
wget https://hydra.iohk.io/build/13695229/download/1/testnet-byron-genesis.json
wget https://hydra.iohk.io/build/13695229/download/1/testnet-shelley-genesis.json
etc..

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.