The activation of Hangzhou will take place between Friday 3rd and Saturday 4th December (Hangzhou’s 1st block will have level 1,916,929) – the current estimate is Dec 4, 2021 01:09 CET.
This means that the network will officially adopt its 8th amendment, and the fourth in 2021 (here is a list of the new features of Hangzhou).
There are several important points to take into account to be ready for activation:
In order to continue to bake and endorse blocks with Octez, you must absolutely update to v11.0, as Hangzhou cannot run on versions prior to v11, and launch the
tezos-accuser-011-PtHangz2daemons. It is fine to run both Granada and Hangzhou2 daemons at the same time – in fact, this is the recommended way to proceed. The Granada daemons will become non-functional as soon as the new protocol is activated, and can safely be stopped once Hangzhou is live.
One of the new features in Hangzhou is context storage flattening, which allows improved access to the Octez node’s context, in order to increase overall chain speed, and make the Octez node more efficient. The activation of this feature requires a migration of the full context storage, which will trigger right after the activation of Hangzhou. This process will take time as it involves a rewrite of the whole context (taking 20-30 minutes for full nodes and 2-3 hours for archive nodes). For full and rolling nodes, the latter times can be reduced by using a recent snapshot in the last cycle (from December 2nd 2021) to speed up the process: the less blocks stored in the context, the smaller is the latter’s size, and the shorter will be the required migration time.
Here is a detailed procedure to import a fresh snapshot before the activation of Hangzhou:
Download a recent snapshot, or export one from a running node:
tezos-node snapshot export --block head~2
Without stopping the current node, set up a new one whose data will be stored in a different directory, here named
tezos-node config init --data-dir ~/tezos-new-node
Import the recently generated snapshot into the new node:
tezos-node snapshot import /path/to/the/full/snapshot --data-dir ~/tezos-new-node
Launch the new node (be careful, and if port 9732 is already taken, launch the node on other port, like 9733):
tezos-node run --net-addr 127.0.0.1:9733 --rpc-addr 127.0.0.1:8733 --data-dir ~/tezos-new-node
Then, check that you have no imminent baking/endorsement slots, stop your old node, and immediately restart the baker, endorser, and accuser daemons on the new node, both for Granada and Hangzhou2:
tezos-baker-010-PtGRANAD --endpoint http://127.0.0.1:8733 run with local node ~/tezos-new-node/ baker_alias tezos-endorser-010-PtGRANAD --endpoint http://127.0.0.1:8733 run baker_alias tezos-accuser-010-PtGRANAD --endpoint http://127.0.0.1:8733 run tezos-baker-011-PtHangz2 --endpoint http://127.0.0.1:8733 run with local node ~/tezos-new-node/ baker_alias tezos-endorser-011-PtHangz2 --endpoint http://127.0.0.1:8733 run baker_alias tezos-accuser-011-PtHangz2 --endpoint http://127.0.0.1:8733 run
You are now ready for Hangzhou!
Feel free to reach out, if you have any questions and/or need special assistance.