Running Full Node

Prerequisites
Java JDK - version 21 or higher.
wget https://download.oracle.com/java/21/latest/jdk-21_linux-x64_bin.deb
sudo apt install ./jdk-21_linux-x64_bin.deb
Alternatively, you can manually install the Java JDK.
Hyperledger Besu 24.7.0 - SHA256: 96cf47defd1d8c10bfc22634e53e3d640eaa81ef58cb0808e5f4265998979530
500 GB of disk space and 12 GB RAM is recommended.
Ubuntu 20.04 or MacOS High Sierra 10.13 or later versions.
Tip before running in Linux:
If synchronizing to Mainnet on Linux or other chains with large data requirements, increase the maximum number of open files allowed using ulimit
. If the open files limit is not high enough, a Too many open files
RocksDB exception occurs.
Get Started
Bitrock-Mainnet Genesis File: https://raw.githubusercontent.com/BitrockChain/genesis/main/mainnet.json
1. Create Directory
mkdir bitrock_node
cd bitrock_node
wget https://raw.githubusercontent.com/BitrockChain/genesis/main/mainnet.json
2. Create Configuration File
Create a chain_config.toml with the following options:
#Enode Pointing
bootnodes=["enode://1fd6bfa1ac606ab3cdbbbacef1b27a1e38b0ac54d5c1a361d07a27211b54b4817aa9b14e596f23c7020d246998f5224ae18882b181dad2ee940d774a085eb7bd@157.245.21.183:30303","enode://5bca2ebdd0f8e6eb7d916ac92edd3a3ca9f18f99c869c2df703c0457d572b3f7baa8e70880a751204988d97d90fe0566ac5917603981248121e3fc428dee25aa@157.230.28.40:30303","enode://99f9371e0469d486b2c2489de3a7df65dc11f0e7c6cbc4838f4862ac58383fca2f680c0989fd4264ccbae00d66cab20050363976b53b80bbc282c80036ba3f24@159.223.238.200:30303","enode://8f151bb869a67ccfb92a1bd522dd4ab689db6cfd1ce2ed13636b4d6a5fabffd0b12e6a18c2ab42bb0075ea74d74370764eea6b0343f6e56578399bdae2044823@178.62.212.166:30303"]
#Bitrock Genesis File
genesis-file="[PATH]/mainnet.json"
#Data directory
data-path="[PATH]/bitrock_node"
#Chain Configuration
rpc-http-enabled=true
rpc-ws-enabled=true
host-allowlist=["*"]
sync-mode=["FULL"]
rpc-http-host=[IPHOST]
rpc-ws-host=[IPHOST]
rpc-http-cors-origins=["all"]
poa-block-txs-selection-max-time=["100"]
rpc-http-max-active-connections=["1000"]
data-storage-format=["FOREST"]
#API Method
rpc-http-api=["ETH","NET","WEB3","TXPOOL","TRACE"]
rpc-ws-api=["ETH","NET","WEB3","TXPOOL","TRACE"]
3. Start Node
besu --config-file=chain_config.toml
4. Run in a Service System
nano /etc/systemd/system/bitrockfullnode.service
[Unit]
Description= bitrock full node
[Service]
Type=simple
User=root
Restart=always
ExecStart=[PATH]/besu --config-file=[PATH]/chain_config.toml
[Install]
WantedBy=default.target
5. Confirm Bitrock Network is Running
curl -X POST --data '{"jsonrpc":"2.0","method":"eth_gasPrice","params":[],"id":53}' http://127.0.0.1:8545
Response:
{
"jsonrpc" : "2.0",
"id" : 53,
"result" : "0x3e8"
}
Request to become a Validator: [email protected]
Last updated