Skip to content

Upgrading to Quilibrium v1.4.21.1 from .21

Complete upgrade script code block

This code block upgrades your node to v1.4.21.1 from v1.4.21, by doing the following:

  1. stopping the ceremonyclient service first
  2. setting release OS and arch variables
    • Please adjust the variable values below (default os=linux, arch=amd64)
  3. deleting node (binaries, dgst and sig) files and re-download the same (but latest) required node files in the node folder
  4. not doing anything with qclient because its latest version is still 1.4.19-p1
  5. modifying the service configuration file
  6. starting the service again
# stop the service
echo "1. stopping the ceremonyclient service first..."
service ceremonyclient stop
echo "... ceremonyclient service stopped"
 
# setting release OS and arch variables
echo "2. setting release OS and arch variables..."
release_os="linux"
release_arch="amd64"
echo "... \$release_os set to \"$release_os\" and \$release_arch set to \"$release_arch\""
 
# deleting node (binaries, dgst and sig) files and re-download the same (but latest) required node files in the node folder
echo "3. deleting node (binaries, dgst and sig) files and re-download the same (but latest) required node files in the node folder..."
cd ~/ceremonyclient/node
rm rm -rf node-*-$release_os-$release_arch*
echo "... deleted node (binaries, dgst and sig) files from node folder"
files=$(curl https://releases.quilibrium.com/release | grep $release_os-$release_arch)
for file in $files; do
    version=$(echo "$file" | cut -d '-' -f 2)
    if ! test -f "./$file"; then
        curl "https://releases.quilibrium.com/$file" > "$file"
        echo "... downloaded $file"
    fi
done
chmod +x ./node-$version-$release_os-$release_arch
cd ..
echo "... download of required node files done"
 
# not doing anything with qclient because its latest version is still 1.4.19-p1
echo "4. not doing anything with qclient because its latest version is still 1.4.19-p1..."
 
# modifying the service configuration file
echo "5. modifying the service configuration file..."
sed -i "s/ExecStart=\/root\/ceremonyclient\/node\/node-1.4.21-$release_os-$release_arch/ExecStart=\/root\/ceremonyclient\/node\/node-$version-$release_os-$release_arch/g" /lib/systemd/system/ceremonyclient.service
systemctl daemon-reload
echo "... replaced \"ExecStart=/root/ceremonyclient/node/node-1.4.21-$release_os-$release_arch\" with \"ExecStart=/root/ceremonyclient/node/node-$version-$release_os-$release_arch\""
echo "... service configuration file updated"
 
# start the service again
echo "6. starting the service again..."
cd ~
service ceremonyclient start
echo "... service started"

Success Screenshot

Success upgrade

Post v1.4.19+ rewards earned

cd ~/ceremonyclient/node
./node-1.4.21.1-linux-amd64 --node-info

Rewards shown