💻Baremetal
Authors: [Payne | Stake🦑Squid]
System Requirements
8 Cores / 16 Threads
Ubuntu 22.04
>= 32GB
>= 14 TiB NVMe SSD
BNB archive size on June 20th 2024 was 11TB
Erigon 🦦
Official Docs https://github.com/node-real/bsc-erigon
Snapshots
To download archive snapshots, please use the following: https://github.com/binance-chain/bsc-snapshots
Install go
Download the Go programming language distribution archive, extracts it to the "/usr/local" directory, and then removes the downloaded archive, effectively installing Go version 1.22.4 on the system.
wget https://go.dev/dl/go1.22.4.linux-amd64.tar.gz && \
rm -rf /usr/local/go && \
tar -C /usr/local -xzf go1.22.4.linux-amd64.tar.gz && \
rm go1.22.4.linux-amd64.tar.gzPlease add the Go executable path to your system's PATH environment variable, and then test to ensure that Go is working correctly.
echo "export PATH="$PATH:/root/.foundry/bin:/usr/local/go/bin"" >> /root/.bashrc
source /root/.bashrc
go version #testBuild Erigon
Clone the Erigon repository from GitHub, including its submodules, changes the current directory to the Erigon directory, checks out the latest release tag, and then compile the project using the "make" build system.
Configure Erigon
Append a systemd service configuration for the Erigon BNB Mainnet Service to the "/etc/systemd/system/erigon.service" file, specifying its description, dependencies, and executable parameters for proper execution and monitoring.
Run Erigon
Reload the systemd manager configuration, start the Erigon service, and enable it to start automatically on system boot, ensuring that the Erigon BNB Mainnet Service is active and will be automatically started upon system startup.
Monitor Logs
Use journalctl to display real-time log messages and continuously follow the log output of the Erigon service, allowing you to monitor its activity and troubleshoot any issues as they occur.
Last updated
Was this helpful?