Empower
Manual upgrade
cd $HOME
wget https://github.com/EmpowerPlastic/empowerchain/releases/download/v2.0.0/empowerd-v2.0.0-linux-amd64.zip
unzip empowerd-v2.0.0-linux-amd64.zip
rm $HOME/empowerd-v2.0.0-linux-amd64.zip
chmod +x empowerd
sudo mv $HOME/empowerd $(which empowerd)
sudo systemctl restart empowerd && sudo journalctl -u empowerd -f
Auto upgrade
cd $HOME && \
wget https://github.com/EmpowerPlastic/empowerchain/releases/download/v2.0.0/empowerd-v2.0.0-linux-amd64.zip && \
unzip empowerd-v2.0.0-linux-amd64.zip && \
rm $HOME/empowerd-v2.0.0-linux-amd64.zip && \
chmod +x empowerd && \
old_bin_path=$(which empowerd) && \
home_path=$HOME && \
rpc_port=$(grep -m 1 -oP '^laddr = "\K[^"]+' "$HOME/.empowerchain/config/config.toml" | cut -d ':' -f 3) && \
[[ -z "$rpc_port" ]] && rpc_port=$(grep -oP 'node = "tcp://[^:]+:\K\d+' "$HOME/.empowerchain/config/client.toml") ; \
tmux new -s empower-upgrade "sudo bash -c 'curl -s https://raw.githubusercontent.com/itrocket-team/testnet_guides/main/utils/autoupgrade/upgrade.sh | bash -s -- -u \"2697000\" -b empowerd -n \"$HOME/empowerd\" -o \"$old_bin_path\" -h \"$home_path\" -p \"undefined\" -r \"$rpc_port\"'"