Configure and Run the BP

We've created all the keys, setup our servers, configured firewalls, and registered our pools and stake addresses. It is now time to create our hotkeys, adjust our scripts and mint some blocks!

The first thing we need to do is rotate our KES keys and create our first operational certificate.

Let's start by creating a directory and backing up our first KES secret key.

mkdir ~/preprodnet/pool/old-keys
cp ~/preprodnet/pool/kes.skey ~/preprodnet/pool/old-keys/

Now let's craete a new kes.skey

cardano-cli node key-gen-KES \
  --verification-key-file ~/preprodnet/pool/kes.vkey \
  --signing-key-file ~/preprodnet/pool/kes.skey

We now need to calculate the current KES period, which is current slot divided by slotsPerKESPeriod.

Let's query the tip

cardano-cli query tip --testnet-magic 1

When this image was taken, our "slot" was 53386135. Now let's see how many slots each KES period has in this network.

The preprod testnet has 129600 slots per KES period. Now we divide the current slot number by the slots per KES period (53386135/129600) which gives us ~411.9, meaning we are still in KES period 411. Yours will likely be higher than this depending on when you follow this guide.

Next, let's create our operational certificate.

Once your new keys have been made we will need to restart the node.service but with an updated start script (in our case, node.sh).

Let's modify our node.sh script so that it starts up using our hot keys and operational certificate.

Edit the startup script to match the following.

Once edited and saved, restart your node.service.

Last updated