Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
NOTE: These steps assume you have built from source previously, be sure to install the dependencies for your distribution if not

Page Tree
expandCollapseAlltrue
root安全节点+超级节点搭建教程


Panel
borderColorgrey
bgColorwhite
titleColorblack
borderWidth1
titleBGColorwhite
borderStylesolid
titleLanguages
SpanishEspañol

Use this page for updating the zend daemon directly from source

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

使用此页面直接从源更新zend守护程序

  • 升级zend守护程序
  • 对于安全节点,请重新启动安全节点跟踪器


注意:这些步骤假设您之前已经从源构建,请确保您的系统已安装依赖项 - 如果没有,请参见 https://github.com/ZencashOfficial/zen/blob/master/README.md



Upgrading the zend daemon

Description描述Command指令

升级zend守护程序

1

Change (cd) to the 'horizen' directory

NOTE: this may be

将(cd)更改为“horizen”目录

注意:对于来自旧源的安装,这可能是'zencash' on older installations from source

Code Block
cd ~/horizen


2Remove (rm) the original 删除(rm)原始的'zen' directory目录


Code Block
rm -r zen


3Clone the github repository克隆github存储库


Code Block
git clone https://github.com/ZencashOfficial/zen.git


4

Change (cd) to the 'zen' directory将(cd)更改为“zen”目录


Code Block
cd zen



5Build and wait for completion建立并等待完成...


Code Block
./zcutil/build.sh -j$(nproc)


6

Download the required parameters for zend

NOTE: This will only download parameters that are missing下载zend所需的参数


注意:这只会下载缺少的参数


Code Block
./zcutil/fetch-params.sh


7Stop zend and enforce a 30 second wait before the next command to ensure zend has fully shutdownIf zen-cli and zend have previously been copied to 停止zend并在下一个命令之前执行之前,等待30秒,以确保zend完全关闭

如果先前已将zen-cli和zend复制到/ usr / bin /

Code Block
zen-cli stop && sleep 30


If 如果先前未将zen-cli and zend have not previously been copied to cli和zend复制到/ usr / bin /

Code Block
./src/zen-cli stop && sleep 30


8Copy zend and zen-cli to the 将zend和zen-cli复制到/ usr / bin / directory目录


Code Block
sudo cp src/{zen-cli,zend} /usr/bin/


9

Start zend with the 使用--rescan flag to start re-scanning the blockchain

NOTE: Re-scanning may take quite some time, sometimes up to an hour or more (depends on node performance)

Failure to do so may produce the following error when your node performs a challenge

rescan标志启动zend以开始重新扫描区块链

注意:重新扫描可能需要相当长的时间,有时长达一个小时或更长时间(取决于节点性能)

  • 如果您的节点挑战失败后,可能会产生以下错误
    • 18: bad-txns-joinsplit-requirements-not-met


Code Block
zend --rescan


10

After the re-scan is complete, the updated zend version will be displayed, the following output will be shown, with the versions in bold

NOTE: You may see the error as in the example if zend has not completed it's rescan, this is normal. Re-enter the last command periodically to check it's status

***CHECK FOR "version": 2001850, after ~Jul 5, 2019,***

NOTE: Zend version 2.0.17 will deprecate at block #555555, approximately Jul 23, 2019

重新扫描完成后,将显示更新的zend版本,将显示以下输出,版本以粗体显示


注意:如果zend尚未完成重新扫描,您可能会看到示例中的错误,这是正常的。 定期重新输入最后一个命令以检查其状态


***检查“版本”:2001850,在2019年7月5日之后,***


注意:Zend版本2.0.17将在块#555555(大约2019年7月23日)弃用


Code Block
zen-cli getnetworkinfo | grep version


Panel
borderColorgrey
bgColorblack
titleColorwhite
borderWidth2
titleBGColorblack
borderStylesolid
titleNot Finished Re-Scanning

zenops@node01:~$ zen-cli getnetworkinfo | grep version
error code: -28
error message:
Rescanning...


Panel
borderColorgrey
bgColorblack
titleColorwhite
borderWidth2
titleBGColorblack
borderStylesolid
titleDesired Output

zenops@node01:~$ zen-cli getnetworkinfo | grep version
"version": 2001850,
"subversion": "/zen:2.0.18/",
"protocolversion": 170002,


11Stop the current instance of zend running with the 使用--rescan flagrescan标志停止当前运行的zend实例


Code Block
zen-cli stop


12

Start zend monitoring services after the upgrade has been completed

For installations using systemd (assumes the unit file is named 升级完成后启动zend监控服务

使用systemd安装(假设单元文件名为'zend.service'

)

Code Block
sudo systemctl start zend
For installations using

monit安装

Code Block
sudo monit start zend
For installations manually running zend

手动启动 zend

Code Block
zend



Restarting zentracker重新启动zentracker
13Restart the Node Tracker after zend has startedFor installations using systemd (assumes the unit file is named 'zentracker在zend重新启动后重新启动zentracker

使用systemd安装(假设单元文件名为'zend.service')

Code Block
sudo systemctl restart zentracker
For installations using pm2 (assumes the tracker is running as the only or first process, numbered 0)

pm2安装(假设跟踪器作为唯一或第一个进程运行,编号为0)

Code Block
pm2 restart 0



Insert excerpt
友情链接
友情链接
nopaneltrue