Leader Log Scripts

Scripts for stake pool owners to check when their pool is scheduled for the slot leadership

circle-info

Leader Log scripts were developed by papacarp arrow-up-rightfrom pooltool.ioarrow-up-right. For full details of the scripts see pooltool.io publicarrow-up-right github

The scripts allow stake pool owners to check when their pool is scheduled for the slot leadership. The steps below cover the following.

circle-info

All steps are required to be run on your Block Producer node

Installation

Below guide is for Ubuntu 20.04.

Update and add ppa package:

sudo apt-get update
sudo apt-get install -y software-properties-common
sudo add-apt-repository ppa:deadsnakes/ppa

Update, install python and pip:

sudo apt-get update
sudo apt-get install -y python3.9
sudo apt-get install -y python3-pip

Check version of the scripts:

circle-info

Python output Python 3.8.5

PIP output pip 20.0.2 from /usr/lib/python3/dist-packages/pip (python 3.8)

Install python package pytz:

Download scripts

Download getSigma.py and leaderLogs.pyscripts from github:

circle-info

Example uses $NODE_HOME as the location of the Cardano node folder

Executing scripts

Create Cardano ledger state:

circle-info

This may take a minute and create ledger-state.json inside your $NODE_HOME

Using your Pool ID and ledger-state.json execute getSigma script:

circle-info

If you do not know your pool id you can find this in any of the staking pool sites (adapools.org, pooltool.io or cardanoscan.io). Example below from pooltool.io

circle-info

This will output your Sigma value for the next steps

building active stake

Sigma: 6.970276119270975e-05

Run leaderLogs.py with following parameters.

circle-info

Below summary of arguments for full details see the pooltool.io githubarrow-up-right. Some of these are optional arguments but included in the example as these are what I use.

  • --vrf-skey path to the pool vrf.skey file.

  • --sigma value from the previous command

  • --pool-id stake pool id

  • --epoch the epoch your running this for. In this case 223

  • --epoch-nonce epoch 223 nonce (different value of each epoch). This can be found here.

  • -bft show potential blocks you would have had if Cardano was full decentralised.

  • --tz set the timezone of your location. Run command below to see list of timezones

Execute leaderLogs.py:

If are scheduled for slot leadership then you should see output similar to this:

triangle-exclamation
circle-info

Support: If you find the contents useful, then please consider supporting by either delegating your ADA to ticker Love2 or sending ADA to the following address - addr1qy2jswg2xfca87h79050dzgj0yup69u9gpclwn9jl2g5tlfvaj6kvenchu5gwxlfhffysxsnekq6kh4z7yq758w2x3gq7xc7sn

Last updated