Nodes
System Requirements and Prerequisites
Before starting, ensure you have the following (recommended):
Hyperledger Besu installed on your machine. Installation Guide.
Java 17 or higher.
RAM: 8GB
Storage: 750GB
Install Besu
Get Started
Copy the Genesis File
The new node needs to be initialized with the same genesis file as the rest of the network. Copy the genesis.json
file.
cd network/node1
Download the Testnet genesis.json
file.
Create config.toml
Configuration Files
config.toml
Configuration Files cd network/node1
nano config.toml
# Valid TOML config file
data-path="data" # Path
#static-nodes-file="data/static-nodes.json"
# Network
bootnodes=["enode://23b6a539306cc1f3a61230e3253cebf9b6cad37fa045954fe27cef265ab232329456c786d16d6c132eaf957b75f5e87629ec7e6a7aa271e9c346b2cde2e0a4d0@95.111.219.167:30301"]
#p2p-host="0.0.0.0"
p2p-port=30305
max-peers=42
host-allowlist=["*"]
[sync]
#sync-mode="X_SNAP" # Enables Snap sync
logging="DEBUG"
min-gas-price=0
revert-reason-enabled=true
rpc-http-enabled=true
#rpc-http-host="0.0.0.0"
rpc-http-port=22005
rpc-http-cors-origins=["*"]
rpc-http-api=["ADMIN", "ETH", "NET", "WEB3", "QBFT"]
#rpc-ws-host="0.0.0.0"
rpc-ws-enabled=true
rpc-ws-port=32005
rpc-ws-api=["ADMIN", "ETH", "NET", "WEB3", "QBFT"]
# Chain
genesis-file="genesis.json" # Path to the custom genesis file
Start Node
besu --config-file=config.toml
Run as a Service
Last updated