➡️ v3.0.0 Update

Before Upgrade Height

➡️ Let’s do it

cd $HOME
wget https://github.com/empe-io/empe-chain-releases/raw/master/v0.3.0/emped_v0.3.0_linux_amd64.tar.gz
tar -xvf emped_v0.3.0_linux_amd64.tar.gz
rm -rf emped_v0.3.0_linux_amd64.tar.gz
chmod +x emped
mkdir -p $HOME/.empe-chain/cosmovisor/upgrades/v0.3.0/bin
mv $HOME/emped $HOME/.empe-chain/cosmovisor/upgrades/v0.3.0/bin
mkdir -p /root/.empe-chain/lib
wget "https://github.com/CosmWasm/wasmvm/releases/download/v1.5.2/libwasmvm.x86_64.so" -O "$HOME/.empe-chain/lib/libwasmvm.x86_64.so"
echo "alias emped='LD_LIBRARY_PATH=/root/.empe-chain/lib:\$LD_LIBRARY_PATH /usr/local/bin/emped'" >> ~/.bashrc
source ~/.bashrc
sudo tee /etc/systemd/system/emped.service > /dev/null << EOF
[Unit]
Description=empe-chain 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}/.empe-chain"
Environment="DAEMON_NAME=emped"
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/.emped/cosmovisor/current/bin"
Environment="LD_LIBRARY_PATH=$HOME/.empe-chain/lib:$LD_LIBRARY_PATH"

[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload

➡️ Just to be sure check version (should be 0.3.0)

$HOME/.empe-chain/cosmovisor/upgrades/v0.3.0/bin/emped version

After Upgrade Height

➡️ Let’s do it

sudo systemctl stop emped
cd $HOME
wget https://github.com/empe-io/empe-chain-releases/raw/master/v0.3.0/emped_v0.3.0_linux_amd64.tar.gz
tar -xvf emped_v0.3.0_linux_amd64.tar.gz
rm -rf emped_v0.3.0_linux_amd64.tar.gz
chmod +x emped
mkdir -p $HOME/.empe-chain/cosmovisor/upgrades/v0.3.0/bin
mv $HOME/emped $HOME/.empe-chain/cosmovisor/upgrades/v0.3.0/bin
sudo ln -s $HOME/.empe-chain/cosmovisor/upgrades/v0.3.0 $HOME/.empe-chain/cosmovisor/current -f
sudo ln -s $HOME/.empe-chain/cosmovisor/current/bin/emped /usr/local/bin/emped -f
mkdir -p /root/.empe-chain/lib
wget "https://github.com/CosmWasm/wasmvm/releases/download/v1.5.2/libwasmvm.x86_64.so" -O "$HOME/.empe-chain/lib/libwasmvm.x86_64.so"
echo "alias emped='LD_LIBRARY_PATH=/root/.empe-chain/lib:\$LD_LIBRARY_PATH /usr/local/bin/emped'" >> ~/.bashrc
source ~/.bashrc
sudo tee /etc/systemd/system/emped.service > /dev/null << EOF
[Unit]
Description=empe-chain 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}/.empe-chain"
Environment="DAEMON_NAME=emped"
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/.emped/cosmovisor/current/bin"
Environment="LD_LIBRARY_PATH=$HOME/.empe-chain/lib:$LD_LIBRARY_PATH"

[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl restart emped

➡️ Just to be sure check version (should be 0.3.0)

$HOME/.empe-chain/cosmovisor/upgrades/v0.3.0/bin/emped version