Giter Site home page Giter Site logo

quixotesystems / cardano-leader-slot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sublayerio/scheduledblocks

11.0 0.0 3.0 334 KB

Scheduled Block Checker for Cardano Stakepool Operators

License: MIT License

Python 100.00%
block cardano leader log pool slot spo stake

cardano-leader-slot's Introduction

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

cardano-leader-slot's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.