https://github.com/sn1f3rt/derogold-checkpoints-generator
A python script to generate checkpoints for the DeroGold blockchain.
https://github.com/sn1f3rt/derogold-checkpoints-generator
checkpoints daemon-rpc derogold python python3
Last synced: about 2 months ago
JSON representation
A python script to generate checkpoints for the DeroGold blockchain.
- Host: GitHub
- URL: https://github.com/sn1f3rt/derogold-checkpoints-generator
- Owner: sn1f3rt
- License: mit
- Created: 2024-02-21T18:42:45.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-12T18:01:03.000Z (about 1 year ago)
- Last Synced: 2025-03-19T10:57:50.129Z (2 months ago)
- Topics: checkpoints, daemon-rpc, derogold, python, python3
- Language: Python
- Homepage:
- Size: 29.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DeroGold Checkpoints Generator
[](LICENSE)
## Table of Contents
- [About](#about)
- [Pre-requisites](#pre-requisites)
- [Installation](#installation)
- [Configuration (Optional)](#configuration-optional)
- [Usage](#usage)
- [License](#license)## About
A python script to generate checkpoints for the DeroGold blockchain.
## Pre-requisites
- Git
- Python 3.8 or higher (tested on 3.11)
- [DeroGold daemon (v0.7.1 or higher)](https://github.com/derogold/derogold/releases/latest)## Installation
```shell
# 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
```## Configuration (Optional)
The script can be configured using the following methods:
1. Environment variables - Create a `.env` file with the options that you want to set. For example:
```shell
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)
```2. Command-line arguments - You can run the script with the `--help` option to see the available options.
```shell
python generate.py --help
```## Usage
```shell
python generate.py
```## License
[MIT License](LICENSE)
Copyright © 2024 Sayan "Sn1F3rt" Bhattacharyya