在新协议更新后应采取哪些步骤来安全升级面包师
3 个回答
- 投票数
-
- 2019-04-10
原则上不需要更新节点,它能够接收新协议004,对其进行编译并使用它来验证协议004产生的块.在实践中,最好将其更新为最新版本.发布,因为总是有有用的改进.例如,在Mainnet中引入的快照可能允许更快地验证迁移块.
相反,守护进程tezos-baker- *tezos-endorser- *和tezos-accuser- *是特定于协议的,正如它们的名称所暗示的那样,因此您需要为当前协议运行正确的守护程序集.活跃在链中.在(可能)激活协议004之前,您需要为003运行守护程序.之后,您可以停止它们,仅运行004守护程序.
如果您提前运行它们,则该翻转是自动的.守护程序与节点对话,以了解当前正在运行哪个协议,如果不是,则它们保持空闲状态.因此,从今天开始,为003和004运行两组守护程序是完全可以的.如果协议004被激活,则设备004将开始运行,而设备003将同时停止.
In principle the node doesn't need to be updated, it is capable of receiving a new protocol 004, compile it and use it to validate blocks produced by protocol 004. In practice it is a good idea to update to the latest release because there are always useful improvements. For example the snapshots introduced in Mainnet May allow for a much faster validation of the migration block.
On the contrary the daemons, tezos-baker-* tezos-endorser-* and tezos-accuser-*, are protocol specific as their name suggests, so you need to run the right set of daemons for the protocol that is currently active in the chain. Until the (possible) activation of protocol 004 you need to run daemons for 003. After that you can stop them and only run 004 daemons.
This turn over is automatic if you run them in advance. The daemons talk to the node to know which protocol is currently running and if it is not theirs, they just stay idle. So it is perfectly fine to run both sets of daemons for 003 and 004 as of today. The set 004 will start if protocol 004 is activated and the set 003 will stop at the same time.
-
- 2019-04-07
当雅典经历时,面包师不必更新节点.更新的规则将在投票周期结束时自动激活(如果成功).
对于烘焙恶魔,通常需要运行更新的软件,因为修改可能会直接影响新模块的构建.
从操作的角度来看,我认为您应该安全地并行运行003和004重载,因为每个重载只会在任何给定时间取决于活动协议而处于活动状态.
如果您不希望同时运行两套分类帐,则应该可以等到激活新协议以启动新的守护程序.这行得通,除非您在课程过渡后才拥有权利!
我正在尝试从操作角度为面包师提供一些书面指导.同时,有关更多详细信息,您可以检查
https://tezos.gitlab.io/master/whitedoc/voting.html
https://medium.com/tezos/amending-tezos-b77949d97e1e
编辑:更正了先前的答案,该答案错误地指出了什么都不必更新.
Bakers don’t have to update the node when athens goes through. The updated rules will activate automagically at the end of the voting cycle (if succesful).
For the baking deamons updated software needs to be run in general since an amendment can have direct impact on the construction of the new block.
From an operational persective i believe that you should be safe running both 003 and 004 deamons in parallel since each will only be active depending on the active protocol at any given time.
If you don’t feel comfortable running both sets of ledger you should be able to wait until the new protocol is activated to launch the new deamons. This works except if you have rights just after the transition of course!
I am trying to find some written guidance for bakers from an operational perspective. Meanwhile for more details you can check
https://tezos.gitlab.io/master/whitedoc/voting.html
https://medium.com/tezos/amending-tezos-b77949d97e1e
EDIT: corrected previous answer that incorrectly stated that nothing has to be updated.
-
因此,我今天可以安全地用004-X背书人/贝克二进制文件替换003-X背书人/贝克二进制文件吗?他们会继续使用旧协议,直到网络切换?So I can safely replace the 003-X endorser/baker binaries with the 004-X endorser/baker binaries today? And they will bake on the old protocol until the network switches?
- 1
- 2019-04-08
- xtzbaker
-
@xtzbaker我请专家来这里给一些官方答复;)@xtzbaker i asked experts to come and give some official answer here ;)
- 0
- 2019-04-10
- Ezy
-
- 2019-04-10
Pt24m4xi .....(雅典A)的探索阶段将在块级别39216处结束. 我们非常有能力测试获胜的提案(雅典A)
这意味着在探索阶段( https://tzscan.io/proposals )结束Tezos链由测试链分叉,并且必须在该测试链上使用004-Pt24m4xi二进制文件.主链仍然保留在003二进制文件上
节点可以同时支持主链和测试链.要在当前节点上启用测试链,应使用
-enable-testchain
运行它,或在节点的p2p部分中添加
并重新启动节点"enable_testchain":true
config.json当我们进入测试阶段时,启用了测试链的节点将自动跟随两个链.
我对此不确定性100%,也许有人可以确认,但是测试链中的烘烤权与主链中的烘烤权相同.因此,如果您在主链上拥有烘焙/认可权,那么您在测试链上也具有这项权利.
这意味着真正想要测试新协议(并保持测试链正常运行)的面包师也应该在测试链上烘烤.
为此,需要使用004二进制文件.您可以使用
选项启动它们–chaintest
所以对于面包师:
tezos-baker-004-Pt24m4xi-使用本地节点[tezos-node的路径] [帐户]运行链测试
您现在已经可以启动它了(除了003二进制文件),它会显示类似
Waitingfortestforktofork
提醒:面包师应特别小心并进行两次烘焙
您还可以分开设置,并且有一个非常好的方法
http://tezos.gitlab.io/mainnet/releases/april.html
测试顺利进行时,我们仍然需要投票促进新协议,如果仍未达到绝大多数,我们将继续使用003.
The Exploration phase for Pt24m4xi.....(Athens A) will end on block level 39216. We have a supermajority to test the winning proposal (Athens A)
This means that when the exploration phase (https://tzscan.io/proposals) ends the Tezos chain is forked with a test chain and the 004-Pt24m4xi binaries must be used on this test chain. The main chain still remains on the 003 binaries
The node can support both the main and the test chain. To enable the test chain on your current node you should run it with
--enable-testchain
or add"enable_testchain": true
in the p2p section of the nodeconfig.json
and restart the nodeWhen we enter the testing phase the node with test chain enabled will automatically follow both chains.
I am not 100% sure about this, maybe someone can confirm, but the baking rights in the test chain are the same that they are on the main chain. So if you have the baking/endorsing right on the main chain you also have this right on the test chain.
This means that bakers who really want to test the new protocol (and keep the test chain going) should be also baking on the test chain.
For the purpose one needs to use the 004 binaries. You can start them with the options
–chain test
So for the baker :
tezos-baker-004-Pt24m4xi --chain test run with local node [path to tezos-node] [account]
You can already start it now (in addition to the 003 binaries) and it will say something like
Waiting for the test chain to be forked
Reminder : bakers should be extra careful with double baking
You can also separate the setup and there is a really good how-to on
http://tezos.gitlab.io/mainnet/releases/april.html
When the test goes well we still need to vote to Promote the new protocol, if this does not reach super majority we will stay on the 003.
随着雅典升级的可能,我很想听听面包师如何在最小的停机时间内安全地将其节点更新到最新版本.到目前为止,进行更新一直很简单,因为您几乎不必担心协议兼容性.
我不清楚您是否可以简单地编译最新版本的baker,node和enderser软件并立即开始运行它,还是必须等到该协议生效后才能运行它们.如果后者确实意味着作为面包师,则您需要在新协议生效时立即可用,以交换面包师和背书人二进制文件,以免错过任何烘焙/背书权利.