Setting up the Genesis Praos consensus blockchain

In this section, we are going to setup the Genesis Praos consensus blockchain node. Check out this short overview of the Ouroboros Protocols by Peter Gaži.

We are going to bootstrap our configuration using jormungandr-bootstrap command as following:

jormungandr-bootstrap -g -p 8607

This is going to create our genesis block as well as our secret configuration file, which we need to copy to locations we have specified in the configuration.nix above. If you did not change these, just run the following:

mkdir -p /etc/secrets

mv pool-secret1.yaml /etc/secrets/jormungandr.yaml

mv block-0.bin /var/lib/jormungandr/

2. Now that we have the files in place, we need to restart the service, it should now start successfully.

systemctl restart jormungandr

3. Now that your blochchain node is up, you can start using it. You might have noticed the bootstrap also created a handful of scripts to play around with your blochain node. We can run them to verify everything is working correctly.

# ./create-account-and-delegate.sh

## Create new Account Address

## Send 1000 Lovelaces from the Faucet Address to the newly created Account Address

## Sending 1000 to ca1shqhexk7peafxw394txk4xsemm05z03dq7v5tf0lu363nxkfx6wjjnsch7d

discrimination: testing

account: ed25519_pk1c97f4hsw02fn5fd2e44f5xw7maqnutg8n9z6tllyw5ve4jfkn55sluyw0f

77a4ac7ceac62472ecdcae51995e6f03c4467703d4b87077a493337ba0a3d06a

## Waiting for new block to be created (timeout = 30 blocks = 30s)

New block was created - 90113696b1bf506f2d7610e9f040587b7a75979c1bae3bbcf2ff7e52d298b6fa (...)

4. Please play around with the node as much as possible. Jormungandr has a neat documentation which gives you a better overview of the tooling and its possibilities.