Closed HeinrichApfelmus closed 2 years ago
I'm also interested in an updated instruction or a script generating those files. BTW: I've followed the instructions and used cardano-node 1.31.0 and ran intor the same error as described by the issuer.
Any solutions? I'm receiving the same error when following the cardano-tesnet guide
There is a script under scripts/byron-to-alonzo/mkfiles.sh which gennerates proper genesis files. Using them I was able to start the nodes wihout any errors.
My problem was similar I was using cabal run cardano-testnet shelley
instead of cabal run cardano-testnet cardano
, since the issue has to do with node synchronization, I think most people get it when they setup the testnet in different eras.
Closing this. If this is still relevant please reopen.
Internal/External Internal
Area Testing, blockchain genesis, cardano-cli
Summary To better understand and test the ecosystems, developers and stake pool operators find it helpful to be able to create and run a test blockchain locally from scratch. Unfortunately, the current instructions in
doc/reference/shelley-genesis.md
seem to be out of date and no longer work as described.Specifically, while the description on how to set up two nodes still works and gives helpful insights on configuration, the section "Querying the node" is no longer accurate; instead, the
cardano-cli
client produces the following error message:Apparently, the network is configured in a way that
cardano-cli
does not quite know how to talk to, and the--shelley-mode
flag does not provide sufficient or even the wrong context.Workaround
The script
scripts/byron-to-alonzo/mkfiles.sh
correctly configures a local test network that performs a series of hardforks. It can be queried withcardano-cli
using the--cardano-mode
flag.Steps to reproduce Steps to reproduce the behavior:
doc/reference/shelley-genesis.md
to configure a local test network.cardano-cli query tip
as described.Expected behavior
doc/reference/shelley-genesis.md
should yield a local test network that works as described. (Thecardano-testnet
executable described indoc/getting-started/launching-a-testnet
is useful, but does not help with understanding the internals of configuring a blockchain network.)cardano-cli query
could be improved. For example, diagnostic information on the network (e.g. whether--shelley-mode
or--cardano-mode
is appropriate) would be helpful.System info (please complete the following information):
Additional context This problem has also been encountered in various forms elsewhere:
2720