A python script to generate checkpoints for the DeroGold blockchain.
- Git
- Python 3.8 or higher (tested on 3.11)
- DeroGold daemon (v0.7.1 or higher)
# Clone the repository
git clone https://github.com/Sn1F3rt/derogold-checkpoints-generator.git
# Switch to the project directory
cd derogold-checkpoints-generator
# Create a virtual environment
python -m venv .venv
# Activate the virtual environment
source .venv/bin/activate
# Install the dependencies
pip install -r requirements.txt
The script can be configured using the following methods:
-
Environment variables - Create a
.env
file with the options that you want to set. For example:DAEMON_RPC_HOST="localhost" # Daemon RPC host address (e.g. localhost) DAEMON_RPC_PORT=6969 # Daemon RPC port (usually 6969) DAEMON_RPC_SSL=0 # Use SSL for daemon RPC (0 for http, 1 for https) OUTPUT_FILE_NAME="checkpoints.csv" # Output file name (e.g. checkpoints.csv)
-
Command-line arguments - You can run the script with the
--help
option to see the available options.python generate.py --help
python generate.py
Copyright © 2024 Sayan "Sn1F3rt" Bhattacharyya