Skip to content

Scheduled Block Checker for Cardano Stakepool Operators

License

Notifications You must be signed in to change notification settings

QuixoteSystems/cardano-leader-slot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Cardano Leader Slot

Scheduled Block Checker for Cardano Stakepool Operators.

leader-slot

Lightweight and Portable Scheduled Blocks Checker for Next, Current and Previous Epochs. No cardano-cli required, just your VRF Key file. All data is taken from Koios API and Armada Alliance

Note: This is a reworking of old python script ScheduledBlocks.py available on https://github.com/papacarp/pooltool.io.git , Ouroboros TPraos version: https://github.com/asnakep/ScheduledBlocks and using Ouroboros Praos updated code from https://github.com/dostrelith678/cardano-leader-logs

Prerequisites:

  • Python 3.8 or higher version
  • pip (Python package installer)
  • libsodium library
  • Koios-Python Library

Installing libsodium library

First of all you need libsodium library installed, If not follow these steps:

git clone https://github.com/input-output-hk/libsodium.git

cd libsodium

git checkout 1.0.16-519-g66f017f1

./autogen.sh

./configure

make

sudo make install

Update:

  • Go to your Git folder where is this repository cloned and run:
git pull
  • Make sure that you have the last version of Koios Python installed:
pip install koios-python -U

Setup:

  • Clone this repository using git:
git clone https://github.com/QuixoteSystems/cardano-leader-slot.git 
  • Execute inside the newly cloned directory:
pip install -r pip_requirements.txt 

to install all needed python package requirements

  • Make sure you can access your vrf.skey file (you can copy in it a path of your choice) and remember to keep it as read only chmod 400 vrf.skey

  • Set Pool Variables on lines 35-39 of leaderslot.py:


### Set These Variables -------------------------------------------###

pool_ticker = "YOUT_POOL_TICKER"
vrf_key_file = ('YOUR_VRF_FILE_PATH')
pool_id_bech32 = "YOUR_POOL_ID:_pool1..."

### -------------------------------------------------------------- ###

Usage:

python3 leaderslot.py

Output:

  • a console output with all the slots assigned for next, current and previous Epochs

Output Example of a Previous Epoch:

360

About

Scheduled Block Checker for Cardano Stakepool Operators

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%