|
13 | 13 | Category: Consensus / Network
|
14 | 14 | Created: 2024-07-17
|
15 | 15 | License: MIT
|
16 |
| -Discussions-To: <<a href="https://github.com/zcash/zips/issues/806">https://github.com/zcash/zips/issues/806</a>></code></pre> |
17 |
| -<h1 id="terminology">Terminology</h1> |
18 |
| -<p>The key word “MUST” in this document are to be interpreted as |
19 |
| -described in BCP 14 <a href="#fn1" class="footnote-ref" id="fnref1" |
20 |
| -role="doc-noteref"><sup>1</sup></a> when, and only when, they appear in |
21 |
| -all capitals.</p> |
22 |
| -<p>The term “network upgrade” in this document is to be interpreted as |
23 |
| -described in ZIP 200 <a href="#fn2" class="footnote-ref" id="fnref2" |
24 |
| -role="doc-noteref"><sup>2</sup></a>.</p> |
25 |
| -<p>The terms “Testnet” and “Mainnet” are to be interpreted as described |
26 |
| -in section 3.12 of the Zcash Protocol Specification <a href="#fn3" |
27 |
| -class="footnote-ref" id="fnref3" |
28 |
| -role="doc-noteref"><sup>3</sup></a>.</p> |
29 |
| -<h1 id="abstract">Abstract</h1> |
| 16 | +Discussions-To: <<a href="https://github.com/zcash/zips/issues/806">https://github.com/zcash/zips/issues/806</a>> |
| 17 | +</code></pre> |
| 18 | + |
| 19 | +<h1 id="terminology"><span class="section-heading">Terminology</span><span class="section-anchor"> <a rel="bookmark" href="#terminology"><img width="24" height="24" class="section-anchor" src="assets/images/section-anchor.png" alt=""></a></span></h1> |
| 20 | + |
| 21 | +<p>The key word “MUST” in this document are to be interpreted as described in |
| 22 | +BCP 14 <a href="#fn:1" id="fnref:1" title="see footnote" class="footnote"><sup>1</sup></a> when, and only when, they appear in all capitals.</p> |
| 23 | + |
| 24 | +<p>The term “network upgrade” in this document is to be interpreted as described in ZIP 200 <a href="#fn:2" id="fnref:2" title="see footnote" class="footnote"><sup>2</sup></a>.</p> |
| 25 | + |
| 26 | +<p>The terms “Testnet” and “Mainnet” are to be interpreted as described in |
| 27 | +section 3.12 of the Zcash Protocol Specification <a href="#fn:3" id="fnref:3" title="see footnote" class="footnote"><sup>3</sup></a>.</p> |
| 28 | + |
| 29 | +<h1 id="abstract"><span class="section-heading">Abstract</span><span class="section-anchor"> <a rel="bookmark" href="#abstract"><img width="24" height="24" class="section-anchor" src="assets/images/section-anchor.png" alt=""></a></span></h1> |
| 30 | + |
30 | 31 | <p>This proposal defines the deployment of the NU6 network upgrade.</p>
|
31 |
| -<h1 id="specification">Specification</h1> |
32 |
| -<h2 id="nu6-deployment">NU6 deployment</h2> |
33 |
| -<p>The primary sources of information about NU6 consensus protocol |
34 |
| -changes are:</p> |
| 32 | + |
| 33 | +<h1 id="specification"><span class="section-heading">Specification</span><span class="section-anchor"> <a rel="bookmark" href="#specification"><img width="24" height="24" class="section-anchor" src="assets/images/section-anchor.png" alt=""></a></span></h1> |
| 34 | + |
| 35 | +<h2 id="nu6deployment"><span class="section-heading">NU6 deployment</span><span class="section-anchor"> <a rel="bookmark" href="#nu6deployment"><img width="24" height="24" class="section-anchor" src="assets/images/section-anchor.png" alt=""></a></span></h2> |
| 36 | + |
| 37 | +<p>The primary sources of information about NU6 consensus protocol changes are:</p> |
| 38 | + |
35 | 39 | <ul>
|
36 |
| -<li>The Zcash Protocol Specification <a href="#fn4" class="footnote-ref" |
37 |
| -id="fnref4" role="doc-noteref"><sup>4</sup></a>.</li> |
38 |
| -<li>ZIP 200: Network Upgrade Mechanism <a href="#fn5" |
39 |
| -class="footnote-ref" id="fnref5" |
40 |
| -role="doc-noteref"><sup>5</sup></a>.</li> |
41 |
| -<li>ZIP 236: Blocks should balance exactly <a href="#fn6" |
42 |
| -class="footnote-ref" id="fnref6" |
43 |
| -role="doc-noteref"><sup>6</sup></a>.</li> |
44 |
| -<li>ZIP 1015: Block Reward Allocation for Non-Direct Development Funding |
45 |
| -<a href="#fn7" class="footnote-ref" id="fnref7" |
46 |
| -role="doc-noteref"><sup>7</sup></a>.</li> |
47 |
| -<li>ZIP 2001: Lockbox Funding Streams <a href="#fn8" |
48 |
| -class="footnote-ref" id="fnref8" |
49 |
| -role="doc-noteref"><sup>8</sup></a>.</li> |
| 40 | +<li>The Zcash Protocol Specification <a href="#fn:4" id="fnref:4" title="see footnote" class="footnote"><sup>4</sup></a>.</li> |
| 41 | +<li>ZIP 200: Network Upgrade Mechanism <a href="#fn:2" title="see footnote" class="footnote"><sup>2</sup></a>.</li> |
| 42 | +<li>ZIP 236: Blocks should balance exactly <a href="#fn:5" id="fnref:5" title="see footnote" class="footnote"><sup>5</sup></a>.</li> |
| 43 | +<li>ZIP 1015: Block Reward Allocation for Non-Direct Development Funding <a href="#fn:6" id="fnref:6" title="see footnote" class="footnote"><sup>6</sup></a>.</li> |
| 44 | +<li>ZIP 2001: Lockbox Funding Streams <a href="#fn:7" id="fnref:7" title="see footnote" class="footnote"><sup>7</sup></a>.</li> |
50 | 45 | </ul>
|
51 |
| -<p>The network handshake and peer management mechanisms defined in ZIP |
52 |
| -201 <a href="#fn9" class="footnote-ref" id="fnref9" |
53 |
| -role="doc-noteref"><sup>9</sup></a> also apply to this upgrade.</p> |
54 |
| -<p>The following ZIPs have been updated in varying degrees to take into |
55 |
| -account NU6:</p> |
| 46 | + |
| 47 | +<p>The network handshake and peer management mechanisms defined in ZIP 201 <a href="#fn:8" id="fnref:8" title="see footnote" class="footnote"><sup>8</sup></a> also apply to this upgrade.</p> |
| 48 | + |
| 49 | +<p>The following ZIPs have been updated in varying degrees to take into account NU6:</p> |
| 50 | + |
56 | 51 | <ul>
|
57 |
| -<li>ZIP 207: Funding Streams <a href="#fn10" class="footnote-ref" |
58 |
| -id="fnref10" role="doc-noteref"><sup>10</sup></a>.</li> |
59 |
| -<li>ZIP 214: Consensus rules for a Zcash Development Fund <a |
60 |
| -href="#fn11" class="footnote-ref" id="fnref11" |
61 |
| -role="doc-noteref"><sup>11</sup></a>.</li> |
| 52 | +<li>ZIP 207: Funding Streams <a href="#fn:9" id="fnref:9" title="see footnote" class="footnote"><sup>9</sup></a>.</li> |
| 53 | +<li>ZIP 214: Consensus rules for a Zcash Development Fund <a href="#fn:10" id="fnref:10" title="see footnote" class="footnote"><sup>10</sup></a>.</li> |
62 | 54 | </ul>
|
63 |
| -<p>The following network upgrade constants <a href="#fn12" |
64 |
| -class="footnote-ref" id="fnref12" role="doc-noteref"><sup>12</sup></a> |
65 |
| -are defined for the NU6 upgrade:</p> |
| 55 | + |
| 56 | +<p>The following network upgrade constants <a href="#fn:2" title="see footnote" class="footnote"><sup>2</sup></a> are defined for the NU6 upgrade:</p> |
| 57 | + |
66 | 58 | <dl>
|
67 | 59 | <dt>CONSENSUS_BRANCH_ID</dt>
|
68 |
| -<dd> |
69 |
| -<code>0xC8E71055</code> |
70 |
| -</dd> |
| 60 | +<dd><code>0xC8E71055</code></dd> |
| 61 | + |
71 | 62 | <dt>ACTIVATION_HEIGHT (NU6)</dt>
|
72 |
| -<dd> |
73 |
| -Testnet: 2976000 |
74 |
| -</dd> |
75 |
| -<dd> |
76 |
| -Mainnet: 2726400 |
77 |
| -</dd> |
| 63 | +<dd>Testnet: 2976000</dd> |
| 64 | + |
| 65 | +<dd>Mainnet: 2726400</dd> |
| 66 | + |
78 | 67 | <dt>MIN_NETWORK_PROTOCOL_VERSION (NU6)</dt>
|
79 |
| -<dd> |
80 |
| -Testnet: <code>170110</code> |
81 |
| -</dd> |
82 |
| -<dd> |
83 |
| -Mainnet: <code>170120</code> |
84 |
| -</dd> |
| 68 | +<dd>Testnet: <code>170110</code></dd> |
| 69 | + |
| 70 | +<dd>Mainnet: <code>170120</code></dd> |
85 | 71 | </dl>
|
86 |
| -<p>For each network (Testnet and Mainnet), nodes compatible with NU6 |
87 |
| -activation on that network MUST advertise a network protocol version |
88 |
| -that is greater than or equal to the MIN_NETWORK_PROTOCOL_VERSION (NU6) |
89 |
| -for that activation.</p> |
90 |
| -<h1 id="backward-compatibility">Backward compatibility</h1> |
91 |
| -<p>Prior to the network upgrade activating on each network, NU6 and |
92 |
| -pre-NU6 nodes are compatible and can connect to each other. However, NU6 |
93 |
| -nodes will have a preference for connecting to other NU6 nodes, so |
94 |
| -pre-NU6 nodes will gradually be disconnected in the run up to |
95 |
| -activation.</p> |
96 |
| -<p>Once the network upgrades, even though pre-NU6 nodes can still accept |
97 |
| -the numerically larger protocol version used by NU6 as being valid, NU6 |
98 |
| -nodes will always disconnect peers using lower protocol versions.</p> |
99 |
| -<p>NU6 does not define a new transaction version or impose a new minimum |
100 |
| -transaction version. NU6 transactions are therefore in the same v4 or v5 |
101 |
| -formats as NU5 transactions. This does not imply that transactions are |
102 |
| -valid across the NU6 activation, since signatures MUST use the |
103 |
| -appropriate consensus branch ID.</p> |
104 |
| -<h1 id="references">References</h1> |
105 |
| -<section id="footnotes" class="footnotes footnotes-end-of-document" |
106 |
| -role="doc-endnotes"> |
| 72 | + |
| 73 | +<p>For each network (Testnet and Mainnet), nodes compatible with NU6 activation on that network MUST advertise a network protocol version that is greater than or equal to the MIN_NETWORK_PROTOCOL_VERSION (NU6) for that activation.</p> |
| 74 | + |
| 75 | +<h1 id="backwardcompatibility"><span class="section-heading">Backward compatibility</span><span class="section-anchor"> <a rel="bookmark" href="#backwardcompatibility"><img width="24" height="24" class="section-anchor" src="assets/images/section-anchor.png" alt=""></a></span></h1> |
| 76 | + |
| 77 | +<p>Prior to the network upgrade activating on each network, NU6 and pre-NU6 nodes are compatible and can connect to each other. However, NU6 nodes will have a preference for connecting to other NU6 nodes, so pre-NU6 nodes will gradually be disconnected in the run up to activation.</p> |
| 78 | + |
| 79 | +<p>Once the network upgrades, even though pre-NU6 nodes can still accept the numerically larger protocol version used by NU6 as being valid, NU6 nodes will always disconnect peers using lower protocol versions.</p> |
| 80 | + |
| 81 | +<p>NU6 does not define a new transaction version or impose a new minimum transaction version. NU6 transactions are therefore in the same v4 or v5 formats as NU5 transactions. This does not imply that transactions are valid across the NU6 activation, since signatures MUST use the appropriate consensus branch ID.</p> |
| 82 | + |
| 83 | +<h1 id="references"><span class="section-heading">References</span><span class="section-anchor"> <a rel="bookmark" href="#references"><img width="24" height="24" class="section-anchor" src="assets/images/section-anchor.png" alt=""></a></span></h1> |
| 84 | + |
| 85 | +<div class="footnotes"> |
107 | 86 | <hr />
|
108 | 87 | <ol>
|
109 |
| -<li id="fn1"><p><a |
110 |
| -href="https://www.rfc-editor.org/info/bcp14">Information on BCP 14 — |
111 |
| -“RFC 2119: Key words for use in RFCs to Indicate Requirement Levels” and |
112 |
| -“RFC 8174: Ambiguity of Uppercase vs Lowercase in RFC 2119 Key |
113 |
| -Words”</a><a href="#fnref1" class="footnote-back" |
114 |
| -role="doc-backlink">↩︎</a></p></li> |
115 |
| -<li id="fn2"><p><a href="zip-0200">ZIP 200: Network Upgrade |
116 |
| -Mechanism</a><a href="#fnref2" class="footnote-back" |
117 |
| -role="doc-backlink">↩︎</a></p></li> |
118 |
| -<li id="fn3"><p><a href="protocol/protocol.pdf#networks">Zcash Protocol |
119 |
| -Specification, Version 2024.5.1 [NU6]. Section 3.12: Mainnet and |
120 |
| -Testnet</a><a href="#fnref3" class="footnote-back" |
121 |
| -role="doc-backlink">↩︎</a></p></li> |
122 |
| -<li id="fn4"><p><a href="protocol/protocol.pdf">Zcash Protocol |
123 |
| -Specification, Version 2024.5.1 or later</a><a href="#fnref4" |
124 |
| -class="footnote-back" role="doc-backlink">↩︎</a></p></li> |
125 |
| -<li id="fn5"><p><a href="zip-0200">ZIP 200: Network Upgrade |
126 |
| -Mechanism</a><a href="#fnref5" class="footnote-back" |
127 |
| -role="doc-backlink">↩︎</a></p></li> |
128 |
| -<li id="fn6"><p><a href="zip-0236">ZIP 236: Blocks should balance |
129 |
| -exactly</a><a href="#fnref6" class="footnote-back" |
130 |
| -role="doc-backlink">↩︎</a></p></li> |
131 |
| -<li id="fn7"><p><a href="zip-1015">ZIP 1015: Block Reward Allocation |
132 |
| -for Non-Direct Development Funding</a><a href="#fnref7" |
133 |
| -class="footnote-back" role="doc-backlink">↩︎</a></p></li> |
134 |
| -<li id="fn8"><p><a href="zip-2001">ZIP 2001: Lockbox Funding |
135 |
| -Streams</a><a href="#fnref8" class="footnote-back" |
136 |
| -role="doc-backlink">↩︎</a></p></li> |
137 |
| -<li id="fn9"><p><a href="zip-0201">ZIP 201: Network Peer Management |
138 |
| -for Overwinter</a><a href="#fnref9" class="footnote-back" |
139 |
| -role="doc-backlink">↩︎</a></p></li> |
140 |
| -<li id="fn10"><p><a href="zip-0207">ZIP 207: Funding Streams</a><a |
141 |
| -href="#fnref10" class="footnote-back" role="doc-backlink">↩︎</a></p></li> |
142 |
| -<li id="fn11"><p><a href="zip-0214">ZIP 214: Consensus rules for a |
143 |
| -Zcash Development Fund</a><a href="#fnref11" class="footnote-back" |
144 |
| -role="doc-backlink">↩︎</a></p></li> |
145 |
| -<li id="fn12"><p><a href="zip-0200">ZIP 200: Network Upgrade |
146 |
| -Mechanism</a><a href="#fnref12" class="footnote-back" |
147 |
| -role="doc-backlink">↩︎</a></p></li> |
| 88 | + |
| 89 | +<li id="fn:1"> |
| 90 | +<p><a href="https://www.rfc-editor.org/info/bcp14">Information on BCP 14 — “RFC 2119: Key words for use in RFCs to Indicate Requirement Levels” and “RFC 8174: Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words”</a> <a href="#fnref:1" title="return to body" class="reversefootnote"> ↩︎</a></p> |
| 91 | +</li> |
| 92 | + |
| 93 | +<li id="fn:2"> |
| 94 | +<p><a href="zip-0200">ZIP 200: Network Upgrade Mechanism</a> <a href="#fnref:2" title="return to body" class="reversefootnote"> ↩︎</a></p> |
| 95 | +</li> |
| 96 | + |
| 97 | +<li id="fn:3"> |
| 98 | +<p><a href="protocol/protocol.pdf#networks">Zcash Protocol Specification, Version 2024.5.1 [NU6]. Section 3.12: Mainnet and Testnet</a> <a href="#fnref:3" title="return to body" class="reversefootnote"> ↩︎</a></p> |
| 99 | +</li> |
| 100 | + |
| 101 | +<li id="fn:4"> |
| 102 | +<p><a href="protocol/protocol.pdf">Zcash Protocol Specification, Version 2024.5.1 or later</a> <a href="#fnref:4" title="return to body" class="reversefootnote"> ↩︎</a></p> |
| 103 | +</li> |
| 104 | + |
| 105 | +<li id="fn:5"> |
| 106 | +<p><a href="zip-0236">ZIP 236: Blocks should balance exactly</a> <a href="#fnref:5" title="return to body" class="reversefootnote"> ↩︎</a></p> |
| 107 | +</li> |
| 108 | + |
| 109 | +<li id="fn:6"> |
| 110 | +<p><a href="zip-1015">ZIP 1015: Block Reward Allocation for Non-Direct Development Funding</a> <a href="#fnref:6" title="return to body" class="reversefootnote"> ↩︎</a></p> |
| 111 | +</li> |
| 112 | + |
| 113 | +<li id="fn:7"> |
| 114 | +<p><a href="zip-2001">ZIP 2001: Lockbox Funding Streams</a> <a href="#fnref:7" title="return to body" class="reversefootnote"> ↩︎</a></p> |
| 115 | +</li> |
| 116 | + |
| 117 | +<li id="fn:8"> |
| 118 | +<p><a href="zip-0201">ZIP 201: Network Peer Management for Overwinter</a> <a href="#fnref:8" title="return to body" class="reversefootnote"> ↩︎</a></p> |
| 119 | +</li> |
| 120 | + |
| 121 | +<li id="fn:9"> |
| 122 | +<p><a href="zip-0207">ZIP 207: Funding Streams</a> <a href="#fnref:9" title="return to body" class="reversefootnote"> ↩︎</a></p> |
| 123 | +</li> |
| 124 | + |
| 125 | +<li id="fn:10"> |
| 126 | +<p><a href="zip-0214">ZIP 214: Consensus rules for a Zcash Development Fund</a> <a href="#fnref:10" title="return to body" class="reversefootnote"> ↩︎</a></p> |
| 127 | +</li> |
| 128 | + |
148 | 129 | </ol>
|
149 |
| -</section> |
| 130 | +</div> |
150 | 131 | </body>
|
151 | 132 | </html>
|
0 commit comments