Recommended Hardware:
| CPU |
4 Cores |
| Memory |
8 GB RAM |
| Storage |
200 GB (NVME) |
Installation
Install Dependencies
sudo apt update && sudo apt upgrade -y
sudo apt install curl git wget htop tmux build-essential jq make lz4 gcc unzip -y
Install Go
cd $HOME
VER="1.21.3"
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"
[ ! -f ~/.bash_profile ] && touch ~/.bash_profile
echo "export PATH=$PATH:/usr/local/go/bin:~/go/bin" >> ~/.bash_profile
source $HOME/.bash_profile
[ ! -d ~/go/bin ] && mkdir -p ~/go/bin
Set Vars
echo "export WALLET="wallet"" >> $HOME/.bash_profile
echo "export MONIKER="test"" >> $HOME/.bash_profile
echo "export CROSSFI_CHAIN_ID="crossfi-evm-testnet-1"" >> $HOME/.bash_profile
echo "export CROSSFI_PORT="18"" >> $HOME/.bash_profile
source $HOME/.bash_profile
Download Binary
cd $HOME
wget <https://github.com/crossfichain/crossfi-node/releases/download/v0.3.0-prebuild3/crossfi-node_0.3.0-prebuild3_linux_amd64.tar.gz> && tar -xf crossfi-node_0.3.0-prebuild3_linux_amd64.tar.gz
tar -xvf crossfi-node_0.3.0-prebuild3_linux_amd64.tar.gz
chmod +x $HOME/bin/crossfid
mv $HOME/bin/crossfid /usr/local/bin/
rm -rf crossfi-node_0.3.0-prebuild3_linux_amd64.tar.gz $HOME/bin
Config & Init App
crossfid init $MONIKER
sed -i -e "s|^node *=.*|node = \\\\\\\\"tcp://localhost:${CROSSFI_PORT}657\\\\\\\\"|" $HOME/.mineplex-chain/config/client.toml
Download Genesis & AddrBook
wget -O $HOME/.mineplex-chain/config/genesis.json <https://snapshot.kovtun.one/crossfi-testnet/genesis.json>
wget -O $HOME/.mineplex-chain/config/addrbook.json <https://snapshot.kovtun.one/crossfi-testnet/addrbook.json>
Set Seeds & Peers
SEEDS=""
$PEERS"de1e9221a35de41e08653ef0aca405c1f2ad500e@crossfi-testnet-peer.kovtun.on:19656"
sed -i -e "s/^seeds *=.*/seeds = \\\\\\\\"$SEEDS\\\\\\\\"/; s/^persistent_peers *=.*/persistent_peers = \\\\\\\\"$PEERS\\\\\\\\"/" $HOME/.mineplex-chain/config/config.toml
Set Custom Ports In app.toml
sed -i.bak -e "s|:1317|:${CROSSFI_PORT}317|g;
s|:8080|:${CROSSFI_PORT}080|g;
s|:9090|:${CROSSFI_PORT}090|g;
s|:9091|:${CROSSFI_PORT}091|g;
s|:8545|:${CROSSFI_PORT}545|g;
s|:8546|:${CROSSFI_PORT}546|g;
s|:6065|:${CROSSFI_PORT}065|g" $HOME/.mineplex-chain/config/app.toml
Set Custom Ports In config.toml File