Installation Node
Hardware requirements
The following requirements are recommended for running Defund:
- 4 or more physical CPU cores
- At least 200GB of SSD disk storage
- At least 8GB of memory (RAM)
- At least 100mbps network bandwidth
Install dependencies Required
sudo apt update && sudo apt upgrade -y && sudo apt install curl tar wget clang pkg-config libssl-dev jq build-essential bsdmainutils git make ncdu gcc git jq chrony liblz4-tool -y
Install go
We are gonna use GO Version 1.21.1 If you already have GO installed you can skip this
ver="1.21.1"
cd $HOME
wget "https://golang.org/dl/go$ver.linux-amd64.tar.gz"
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf "go$ver.linux-amd64.tar.gz"
rm "go$ver.linux-amd64.tar.gz"
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> ~/.bash_profile
source ~/.bash_profile
go version
Install binary
cd $HOME
git clone https://github.com/BlockXLabs/BlockX-Genesis-Mainnet1.git
cd BlockX-Genesis-Mainnet1
make install
Initialize Node
Please change <MONIKER>
To your own Moniker.
blockxd init $MONIKER --chain-id blockx_100-1
blockxd config chain-id blockx_100-1
blockxd config keyring-backend file
Download Genesis file and addrbook
- Genesis
wget -O $HOME/.blockxd/config/genesis.json "https://raw.githubusercontent.com/BlockXLabs/networks/master/chains/blockx_100-1/genesis.json"
- Addrbook
wget -O $HOME/.blockxd/config/addrbook.json "https://raw.githubusercontent.com/vinjan23/Mainnet/main/Blockx/addrbook.json"
Peer & Seed & Gas
seeds="cd462b62d54296ab4550d7c1ed5baafe5653faa6@137.184.7.64:26656,fbaf65d8f2732cb19269569763de4b75d84f5f52@147.182.238.235:26656,5f21477b66cce124fc61167713243d8de30a9572@137.184.38.212:26656,abddf4491980d5e6c31b44e3640610c77d475d89@146.190.153.165:26656"
sed -i.bak -e "s/^seed *=.*/seed = \"$seed\"/" ~/.blockxd/config/config.toml
peers="dfc2886dd41cc063ac0e962df490e94bc4aa6e43@65.108.206.74:19656,85d0069266e78896f9d9e17915cdfd271ba91dfd@146.190.153.165:26656,adcd9c90cc9fba509fb283e365ecd31bd5c37ff5@49.13.166.213:26656,9b84b33d44a880a520006ae9f75ef030b259cbaf@137.184.38.212:26656,3045517c28ad1965f68c47fa04f08b042834f2f8@143.198.130.3:26656,e15f4d31281036c69fa17269d9b26ff8733511c6@147.182.238.235:26656,34d08633547fc406095ff6d730fdfe65d34b96d0@158.69.125.73:11356,8ebf5e70dad7268a66a9198dbe9006f9140415b6@217.182.211.81:26656,dc240d568509fa275cb870b93de4db1869d7187a@5.78.103.187:26656,72639ce4ce7e0260d7ae129e6acc07dcb54d6af1@167.235.102.45:20656,bc152258668e673a3b63f964fa75afdd478078c7@185.246.85.48:39656,bbe679ddc774dc91b962985c7339a2e7934b8451@207.180.250.5:26656,724b268dbb274e7d4b26503129604a968c9e226b@37.120.189.81:26656"
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" $HOME/.blockxd/config/config.toml
sed -i -e "s|^minimum-gas-prices *=.*|minimum-gas-prices = \"0abcx\"|" $HOME/.blockxd/config/app.toml
config pruning
PRUNING="custom"
PRUNING_KEEP_RECENT="100"
PRUNING_INTERVAL="19"
sed -i -e "s/^pruning *=.*/pruning = \"$PRUNING\"/" $HOME/.blockxd/config/app.toml
sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \
\"$PRUNING_KEEP_RECENT\"/" $HOME/.blockxd/config/app.toml
sed -i -e "s/^pruning-interval *=.*/pruning-interval = \
\"$PRUNING_INTERVAL\"/" $HOME/.blockxd/config/app.toml
create service file and start node
Create service file Create a blockxd.service
file in the /etc/systemd/system
folder with the following code. You can change USER
with your Linux user name. You need sudo previlege to do this step.
sudo tee /etc/systemd/system/blockxd.service > /dev/null << EOF
[Unit]
Description=Blockxd
After=network-online.target
[Service]
User=$USER
ExecStart=$(which blockxd) start
Restart=always
RestartSec=3
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
- Enable Service and Start Node
systemctl daemon-reload
systemctl enable blockxd
systemctl restart blockxd
journalctl -fu blockxd -ocat
Create Validator
Heads up to the Cheat Sheets to create validator