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
Description | Command | |
|---|---|---|
| 1 | Upgrading the zend daemon | |
| 2 | Change (cd) to the 'horizen' directory | NOTE: this may be 'zencash' on older installations from source cd ~/horizen |
| 3 | Remove (rm) the original 'zen' directory | rm -r zen |
| 4 | Clone the github repository | git clone https://github.com/HorizenOfficial/zen.git |
| 5 | Change (cd) to the 'zen' directory | cd zen
|
| 6 | Build and wait for completion... | ./zcutil/build.sh -j$(nproc) |
| 7 | Download the required parameters for zend
NOTE: This will only download parameters that are missing | ./zcutil/fetch-params.sh |
| 8 | Stop 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 5If zen-cli and zend have not previously been copied to /usr/bin/ ./src/zen-cli stop && sleep 5 |
| 9 | Copy zend and zen-cli to the /usr/bin/ directory | sudo cp src/{zen-cli,zend} /usr/bin/ |
| 10 | 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 |
| 11 | 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 zendFor installations using monit sudo monit start zendFor installations manually running zend zend |
| 12 | Restarting zentracker | |
| 13 | Restart the Node Tracker after zend has started | For installations using systemd (assumes the unit file is named 'zentracker.service') sudo systemctl restart zentrackerFor installations using pm2 (assumes the tracker is running as the only or first process, numbered 0) pm2 restart 0 |