Comment on page
Setting up a Node
Learn how to start the mining process by setting up a node
These instructions are for Ubuntu users, will work for version 18,20,22
Create a user ubuntu and provide sudo permission
useradd -m ubuntu
passwd ubuntu
Make him sudo
usermod -aG sudo ubuntu
Try not to use root to install. Use ubuntu user to continue with steps below.
Allow ports 30303, 8545 on firewall with the following command
🚨 Security Alert 🚨
If you are mining do not open port (8545)
ufw allow 30303
ufw allow 8545
Switch to the ubuntu user we just created above
su ubuntu
cd ~
🚨 Make sure you are in /home/ubuntu folder 🚨
wget https://storage.googleapis.com/golang/go1.19.linux-amd64.tar.gz
tar -xvf go1.19.linux-amd64.tar.gz
sudo rm -fr /usr/local/go
sudo mv go /usr/local
export GOROOT=/usr/local/go
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH
cd ~
git clone https://github.com/maxxchain/go-ethereum
cd go-ethereum/
sudo apt-get update && sudo apt-get dist-upgrade -y
sudo apt-get install build-essential make git screen unzip curl nginx pkg-config nmap xterm screen tcl -y
make geth
export PATH=/root/go-ethereum/build/bin:$PATH"
git clone https://github.com/maxxchain/genesis-block && cd genesis-block
If you want to run MaxxChain Testnet node use 👇
geth --datadir data init /path/to/genesis-block/testnet.json
If you will be running a MaxxChain Mainnet node use 👇
geth --datadir data init /path/to/genesis-block/mainnet.json
geth --networkid 10201 --datadir data --port 30303 --http --http.port 8545 --http.addr 0.0.0.0 --http.api personal,eth,net --http.corsdomain '*' --syncmode full
- Mainnet = 10201
- Testnet = 10203
🚨 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.
git clone https://github.com/maxxchain/bootnodes && cd bootnodes
- Give permission to the executable bash file
sudo chmod 755 mainnet-init.sh
sudo chmod 755 testnet-init.sh
If you are running MaxxChain mainnet
./mainnet-init.sh
If you are running MaxxChain testnet
./testnet-init.sh
Congratulations you have your geth full node up and running.
geth --networkid 10201 --datadir data --port 30303 --http --http.port 8545 --http.addr 0.0.0.0 --http.api personal,eth,net --http.corsdomain '*' --syncmode full --nat extip:your_server_public_address
Where your_server_public_address is the ip address of your server that is publicly available
geth attach --exec admin.nodeInfo.enode data/geth.ipc
MaxxChain team/Dev team and it will be included in our community peers list on our github https://github.com/maxxchain/bootnodes/blob/main/mainnet-nodes.txt
Last modified 3mo ago