Elys
Run the node using systemd
Chain ID: elystestnet-1
Recommended Hardware Requirements
SPEC | Recommend |
---|---|
CPU | 4 Cores |
RAM | 4 GB |
SSD | 200 GB |
NETWORK | 100 Mbps |
Update and install packages for compiling
sudo apt update
sudo apt-get install git curl build-essential make jq gcc snapd chrony lz4 tmux unzip bc -y
Install Go
sudo rm -rf /usr/local/go
curl -Ls https://go.dev/dl/go1.21.7.linux-amd64.tar.gz | sudo tar -xzf - -C /usr/local
eval $(echo 'export PATH=$PATH:/usr/local/go/bin' | sudo tee /etc/profile.d/golang.sh)
eval $(echo 'export PATH=$PATH:$HOME/go/bin' | tee -a $HOME/.profile)
Build binary
cd $HOME
rm -rf elys
git clone https://github.com/elys-network/elys.git
cd elys
git checkout v0.29.25
make build
mkdir -p $HOME/.elys/cosmovisor/genesis/bin
mv build/elysd $HOME/.elys/cosmovisor/genesis/bin/
rm -rf build
sudo ln -s $HOME/.elys/cosmovisor/genesis $HOME/.elys/cosmovisor/current -f
sudo ln -s $HOME/.elys/cosmovisor/current/bin/elysd /usr/local/bin/elysd -f
Cosmovisor Setup
go install cosmossdk.io/tools/cosmovisor/cmd/[email protected]
sudo tee /etc/systemd/system/elys.service > /dev/null << EOF
[Unit]
Description=elys node service
After=network-online.target
[Service]
User=$USER
ExecStart=$(which cosmovisor) run start
Restart=on-failure
RestartSec=10
LimitNOFILE=65535
Environment="DAEMON_HOME=$HOME/.elys"
Environment="DAEMON_NAME=elysd"
Environment="UNSAFE_SKIP_BACKUP=true"
Environment="PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:$HOME/.elys/cosmovisor/current/bin"
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable elys
Initialize Node
Replace Name
with your own moniker
MONIKER="Name-VNBnode"
elysd config chain-id elystestnet-1
elysd config keyring-backend test
elysd config node tcp://localhost:21257
elysd init $MONIKER --chain-id elystestnet-1
Download Genesis & Addrbook
curl -Ls https://snap.nodex.one/elys-testnet/genesis.json > $HOME/.elys/config/genesis.json
curl -Ls https://snap.nodex.one/elys-testnet/addrbook.json > $HOME/.elys/config/addrbook.json
Configure
sed -i -e "s|^seeds *=.*|seeds = \"[email protected]:21210\"|" $HOME/.elys/config/config.toml
sed -i -e "s|^minimum-gas-prices *=.*|minimum-gas-prices = \"0.0018ibc/2180E84E20F5679FCC760D8C165B60F42065DEF7F46A72B447CFF1B7DC6C0A65,0.00025ibc/27394FB092D2ECCD56123C74F36E4C1F926001CEADA9CA97EA622B25F41E5EB2,0.00025uelys\"|" $HOME/.elys/config/app.toml
Pruning Setting
sed -i \
-e 's|^pruning *=.*|pruning = "nothing"|' \
$HOME/.elys/config/app.toml
Custom Port
sed -i -e "s%^proxy_app = \"tcp://127.0.0.1:26658\"%proxy_app = \"tcp://127.0.0.1:21258\"%; s%^laddr = \"tcp://127.0.0.1:26657\"%laddr = \"tcp://127.0.0.1:21257\"%; s%^pprof_laddr = \"localhost:6060\"%pprof_laddr = \"localhost:21260\"%; s%^laddr = \"tcp://0.0.0.0:26656\"%laddr = \"tcp://0.0.0.0:21256\"%; s%^prometheus_listen_addr = \":26660\"%prometheus_listen_addr = \":21266\"%" $HOME/.elys/config/config.toml
sed -i -e "s%^address = \"tcp://0.0.0.0:1317\"%address = \"tcp://0.0.0.0:21217\"%; s%^address = \":8080\"%address = \":21280\"%; s%^address = \"0.0.0.0:9090\"%address = \"0.0.0.0:21290\"%; s%^address = \"0.0.0.0:9091\"%address = \"0.0.0.0:21291\"%; s%:8545%:21245%; s%:8546%:21246%; s%:6065%:21265%" $HOME/.elys/config/app.toml
Snapshot
curl -L https://snap.nodex.one/elys-testnet/elys-latest.tar.lz4 | tar -Ilz4 -xf - -C $HOME/.elys
[[ -f $HOME/.elys/data/upgrade-info.json ]] && cp $HOME/.elys/data/upgrade-info.json $HOME/.elys/cosmovisor/genesis/upgrade-info.json
Start Node
sudo systemctl start elys
journalctl -u elys -f