Installation

Minimum hardware Requirements #

v0.3.0-prebuild9

CPU : 4x CPUs
Ram : 8GB RAM 
Storage: 100GB of storage (SSD or NVME)

Setup validator name

MONIKER="YOUR_MONIKER_GOES_HERE"

Install dependencies

sudo apt update
sudo apt-get install git curl build-essential make jq gcc snapd chrony lz4 tmux unzip bc -y

INSTALL GO

ver="1.20.5" && \
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" >> $HOME/.bash_profile && \
source $HOME/.bash_profile && \
go version

# Adding Go's location to profile
cat <<'EOF' >>$HOME/.profile
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export GO111MODULE=on
export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin
EOF

source $HOME/.profile
go version

Download binary

cd $HOME 
wget -O $HOME/go/bin https://files.nodeshub.online/testnet/crossfi/binary/v0.3.0/crossfid
chmod +x $HOME/go/bin/crossfid

Initialize Node

crossfid config chain-id crossfi-evm-testnet-1

Download genesis

curl -Ls https://snapshots.aknodes.net/snapshots/crossfi/genesis.json > $HOME/.mineplex-chain/config/genesis.json

Download Address Book

curl -Ls https://snapshots.aknodes.net/snapshots/crossfi/addrbook.json > $HOME/.mineplex-chain/config/addrbook.json

Create Service

tee /etc/systemd/system/crossfi.service > /dev/null <<EOF
[Unit]
Description=crossfid
After=network-online.target

[Service]
User=$USER
ExecStart=$(which crossfid) start
Restart=on-failure
RestartSec=3
LimitNOFILE=65535

[Install]
WantedBy=multi-user.target
EOF

Download Snapshot

crossfid tendermint unsafe-reset-all --home $HOME/.mineplex-chain --keep-addr-book 
curl https://files.nodeshub.online/testnet/crossfi/snapshot/snap_crossfi.tar.lz4 | lz4 -dc - | tar -xf - -C $HOME/.mineplex-chain

Start the node

sudo systemctl restart crossfi
journalctl -u crossfi -f -o cat

Last updated