Upgrade zend daemon using apt

NOTICE: Support for Ubuntu 18.04 and Debian 8 and 9 have been deprecated with ZEND 4.1.0. These distributions will no longer be able to upgrade using apt. You can still build ZEND from source for these distributions.

Use this page for common commands used to upgrade the various software running on Secure, or Super Nodes

  • Upgrading the zend daemon



DescriptionCommand

Upgrading the zend daemon
1

Update the zen.list to point to the new HorizenOffical git repo and update the apt cache and Install zen, this will upgrade the zend daemon if a new version is available




Update zen.list file to use the horizenofficial git repo

sudo sed -i 's/[zZ][eE][nN][cC][aA][sS][hH][oO][fF][fF][iI][cC][iI][aA][lL]/HorizenOfficial/g' /etc/apt/sources.list.d/zen.list

Update the apt cache and confirm the repo update following the steps bellow (if prompted)

sudo apt-get update

When running sudo apt-get update you might get an error like this:

Example

: Repository 'https://HorizenOfficial.github.io/repo/ $distro Release' changed its 'Origin' value from 'ZencashOfficial' to 'HorizenOfficial'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.

To fix this please accept the change in origin by pressing y + ENTER if this dialog appears:

Example

Do you want to accept these changes and continue updating from this repository? [y/N]

Update the apt cache and Install zen, this will upgrade the zend daemon if a new version is available

sudo rm -r /var/lib/apt/lists/* && sudo apt-get update && sudo apt-get install zen -y
2

Download the required parameters for zend


NOTE: This will only download parameters that are missing

zen-fetch-params
3Stop zend after the upgrade has completed

For installations using systemd (assumes the unit file is named 'zend.service')

sudo systemctl stop zend

For installations using monit

sudo monit stop zend

For installations manually running zend

zen-cli stop && sleep 5
4

Check zend's version


***CHECK FOR "Zen Daemon version v4.1.0"***


zend --version
Desired Output

zenops@node01:~$ zend --version

Zen Daemon version v4.1.0

Copyright (C) 2009-2023 The Bitcoin Core Developers
Copyright (C) 2015-2023 The Zcash Developers
Copyright (C) 2015-2023 Zdeveloper.org
Copyright (C) 2015-2023 Zen Blockchain Foundation

This is experimental software.

Distributed under the MIT software license, see the accompanying file COPYING
or <http://www.opensource.org/licenses/mit-license.php>.

This product includes software developed by the OpenSSL Project for use in the
OpenSSL Toolkit <https://www.openssl.org/> and cryptographic software written
by Eric Young.

5

Start zend monitoring services after the upgrade has been completed

For installations using systemd (assumes the unit file is named 'zend.service')

sudo systemctl start zend

For installations using monit

sudo monit start zend

For installations manually running zend

zend

Restarting zentracker
6Restart zentracker after zend has restarted

For installations using systemd

sudo systemctl restart zentracker

For installations using pm2 (assumes the tracker is running as the only or first process, numbered 0)

pm2 restart 0



© 2020 Horizen. All rights reserved.