Besu server with squickstart options from src build
The Quorum Genesis Tool is a utility to generate the necessary genesis files and configurations for setting up a private blockchain using Hyperledger Besu. This version has been updated to recommend QBFT as the preferred consensus mechanism and marks Raft as deprecated, providing guidance for users to make informed choices during setup.
This tool automates the creation of network configurations, including Docker Compose setups, to make development easier for blockchain developers and enthusiasts.
- Supports multiple consensus mechanisms, including IBFT, IBFT2, QBFT (recommended), Clique, and Raft (deprecated soon).
- Generates a complete genesis file based on the specified Chain ID.
- Automated Docker Compose configuration for seamless network deployment.
- Cross-chain bridge integration.
- Node.js (version 20 or above recommended)
- npm
- Docker and Docker Compose
- Ensure the following dependencies are installed before running the setup:
- Node.js: Install the latest stable version from NodeSource.
- Docker: Used for creating Besu nodes and cross-chain bridge service.
- Docker Compose: Required to run multiple services in Docker.
-
Download the Repository
- Clone or download the repository to your local machine:
git clone https://github.com/your-username/quorum-genesis-tool-updated.git cd quorum-genesis-tool-updated
- Clone or download the repository to your local machine:
-
Install Dependencies
- Install the required Node.js dependencies:
npm install
- Install the required Node.js dependencies:
-
Build the Project
- Build the TypeScript files to generate necessary JavaScript artifacts:
npm run build
- Build the TypeScript files to generate necessary JavaScript artifacts:
-
Generate Genesis File
- Generate the genesis file with Chain ID 138:
node ./dist/index.js --chain-id 138
- Generate the genesis file with Chain ID 138:
- Use Docker Compose to start the Besu nodes and cross-chain bridge services:
docker-compose up -d
- Verify the status of the Docker containers:
docker ps
- To see logs for any running container:
docker-compose logs -f
During setup, the tool will prompt users to choose from the following consensus algorithms:
- IBFT
- IBFT2
- QBFT (recommended)
- Clique
- Raft (will be deprecated soon)
Note: QBFT is currently the recommended consensus algorithm, while Raft is marked as deprecated.
- Navigate to Project Directory
cd /path/to/quorum-genesis-tool-updated
- Install Dependencies
npm install
- Build the Project
npm run build
- Generate Genesis File
node ./dist/index.js --chain-id 138
- Start Docker Containers
docker-compose up -d
This project is licensed under the MIT License. See the LICENSE
file for details.
We welcome contributions from the community! Feel free to fork the repository and submit a pull request for any features, improvements, or bug fixes.
For questions or assistance, please open an issue in the repository or contact the project maintainer.
Happy Building! 🎉