Upgrade zend daemon from source

Use this page for updating the zend daemon directly from source

  • Upgrading the zend daemon
  • For Secure Nodes, restart the Secure Node Tracker


NOTE: These steps assume you have built from source previously, be sure to install the dependencies for your distribution if not - https://github.com/HorizenOfficial/zen/blob/master/README.md



DescriptionCommand

Upgrading the zend daemon
1

Change (cd) to the 'horizen' directory

NOTE: this may be 'zencash' on older installations from source

cd ~/horizen
2Remove (rm) the original 'zen' directory
rm -r zen
3Clone the github repository
git clone https://github.com/HorizenOfficial/zen.git
4

Change (cd) to the 'zen' directory

cd zen


5Build and wait for completion...
./zcutil/build.sh -j$(nproc)
6

Download the required parameters for zend


NOTE: This will only download parameters that are missing

./zcutil/fetch-params.sh
7Stop zend and enforce a 30 second wait before the next command to ensure zend has fully shutdown

If zen-cli and zend have previously been copied to /usr/bin/

zen-cli stop && sleep 5

If zen-cli and zend have not previously been copied to /usr/bin/

./src/zen-cli stop && sleep 5
8Copy zend and zen-cli to the /usr/bin/ directory
sudo cp src/{zen-cli,zend} /usr/bin/
9

Check zend's version


***CHECK FOR "Zen Daemon version v2.0.24", after October 09, 2021,***


NOTE: Zend version 2.0.23 will deprecate at block #1027500, approximately on Wed, 27 Oct 2021 09:35:02 GMT

zend --version
Desired Output

zenops@node01:~$ zend --version

Zen Daemon version v2.0.24

Copyright (C) 2009-2021 The Bitcoin Core Developers
Copyright (C) 2015-2021 The Zcash Developers
Copyright (C) 2015-2021 Zdeveloper.org
Copyright (C) 2015-2021 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.

10

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
11Restart the Node Tracker after zend has started

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

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.