Mining MaxxChain - Ubuntu
These instructions are for Ubuntu users, will work for version 18,20,22. Note that there are similarity in setting up a mining node and a regular node but some minor change and precautions needs to be
Setup a user
Create a user ubuntu and provide sudo permission
Make him sudo
Try not to use root to install. Use ubuntu user to continue with steps below.
Default Ports
Allow ports 30303 on firewall with the following command
🚨 Security Alert 🚨
Do not open port (8545)
Switch to the ubuntu user we just created above
Install Go Lang if you have not already done so:
🚨 Make sure you are in /home/ubuntu folder 🚨
Installing MaxxChain Node
Clone Repo and build geth
Add geth to path (optional)
Setup genesis Block
If you want to mine MaxxChain Testnet use 👇
If you will be mining MaxxChain Mainnet use 👇
Create account for mining rewards
Enter a strong password and save the generated address, which will be used to receive mining rewards.
Start the geth client with the --mine flag to enable mining and --miner.etherbase flag to set the mining reward address. Replace <your_reward_address> with the address generated in the previous step:
Geth will start mining using your local machine's resources. You can also add the --miner.threads flag followed by a number to specify the number of CPU threads to use for mining. For example, --miner.threads=4 would use 4 threads.
🚨 Important note 🚨
Make sure to replace the --networkid 10201 with the appropiate chain id depending if you want to run the MaxxChain mainnet or the testnet.
Connect to geth console to add seed peers
Give permission to the executable bash file
Run the command to install community defined MaxxChain peers onto your geth
If you are running MaxxChain mainnet
If you are running MaxxChain testnet
Last updated