This guide will walk you through setting up a solo mining node on the Initverse Mainnet. This process requires a Linux environment such as WSL (Windows Subsystem for Linux) or a Linux VPS.
Before proceeding, ensure you have access to a Linux-based system:
- WSL (Windows Subsystem for Linux) if using Windows
- A Linux VPS (Ubuntu/Debian recommended)
- A dedicated Linux machine
Ensure you have Go and Make installed. If they are not installed, run the following command:
sudo apt update && sudo apt install make golang-go
Download the Initverse chain repository from GitHub:
git clone https://github.com/Project-InitVerse/chain.git
cd chain
Compile the Geth (Go Ethereum) binary:
make geth
After building Geth, start your node with the following command:
sudo ./build/bin/geth --datadir data --http --syncmode full console --ipcpath /tmp/geth.ipc
If successful, you will see blockchain synchronization messages. This process may take some time.
Once synchronization is complete, configure mining by setting your Ethereum wallet address:
miner.setEtherbase('your_mainnet_address_here')
Start mining with:
miner.start()
To mine with limited threads: you can pass any number based on your machine to run the solo mining node
miner.start(3) # run miner with 3 threads
To stop mining:
miner.stop()
To check if your blockchain is synchronizing, use:
eth.syncing
If synchronization is complete, this command will return false
.
- Ensure your VPS has sufficient CPU and RAM to handle mining operations.
- If using WSL, allow external connections via firewall settings.
- You can run the node in the background using
screen
ortmux
to keep it active after closing the terminal.
If you found this repository useful, please star the repo!
Compiled by ~Muhammad Zohaib