Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
123 lines (82 sloc) 4.28 KB
ZIP: 206
Title: Deployment of the Blossom Network Upgrade
Owners: Daira Hopwood <daira@electriccoin.co>
Credits: Simon Liu <simon@bitcartel.com>
Status: Draft
Category: Consensus
Created: 2019-07-29
License: MIT

Terminology

The key words "MUST", "MUST NOT", "SHOULD", and "MAY" in this document are to be interpreted as described in RFC 2119. [2]

The term "network upgrade" in this document is to be interpreted as described in ZIP 200. [3]

The terms below are to be interpreted as follows:

Blossom
Code-name for the third Zcash network upgrade, also known as Network Upgrade 2.
Testnet
The Zcash test network, as defined in [1].
Mainnet
The Zcash production network, as defined in [1].

Abstract

This proposal defines the deployment of the Blossom network upgrade.

Specification

Blossom deployment

The primary sources of information about Blossom consensus protocol changes are:

  • The Zcash Protocol Specification [1].
  • Shorter Block Target Spacing [5].
  • Network Upgrade Activation Mechanism [3].

The network handshake and peer management mechanisms defined in [4] also apply to this upgrade.

The following network upgrade constants [3] are defined for the Blossom upgrade:

BRANCH_ID
0xXXXXXXXX
ACTIVATION_HEIGHT (Blossom)

Testnet: XXXXXX

Mainnet: XXXXXX

Nodes compatible with Blossom activation on testnet MUST advertise protocol version 170008 or later. Nodes compatible with Blossom activation on mainnet MUST advertise protocol version 170009 or later. The minimum peer protocol version that Blossom-compatible nodes will connect to will be 170007.

Pre-Blossom testnet nodes are defined as nodes on testnet advertising a protocol version less than 170008. Pre-Blossom mainnet nodes are defined as nodes on mainnet advertising a protocol version less than 170009.

For each network (testnet and mainnet), approximately three days (defined in terms of block height) before the corresponding Blossom activation height, nodes compatible with Blossom activation on that network will change the behaviour of their peer connection logic in order to prefer pre-Blossom peers on that network for eviction from the set of peer connections:

/** The period before a network upgrade activates, where connections to upgrading peers are preferred (in blocks). */
static const int NETWORK_UPGRADE_PEER_PREFERENCE_BLOCK_PERIOD = 24 * 24 * 3;

The implementation is similar to that for Overwinter which was described in [4].

Once Blossom activates on testnet or mainnet, Blossom nodes should take steps to:

  • reject new connections from pre-Blossom nodes on that network;
  • disconnect any existing connections to pre-Blossom nodes on that network.

Backward compatibility

Prior to the network upgrade activating on each network, Blossom and pre-Blossom nodes are compatible and can connect to each other. However, Blossom nodes will have a preference for connecting to other Blossom nodes, so pre-Blossom nodes will gradually be disconnected in the run up to activation.

Once the network upgrades, even though pre-Blossom nodes can still accept the numerically larger protocol version used by Blossom as being valid, Blossom nodes will always disconnect peers using lower protocol versions.

Support in zcashd

Support for Blossom on testnet will be implemented in zcashd version 2.0.7, which will advertise protocol version 170008. Support for Blossom on mainnet will be implemented in zcashd version 2.1.0, which will advertise protocol version 170009.

References

[1](1, 2, 3) Zcash Protocol Specification, Version 2019.0.4 or later [Overwinter+Sapling+Blossom]
[2]Key words for use in RFCs to Indicate Requirement Levels
[3](1, 2, 3) ZIP 200: Network Upgrade Activation Mechanism
[4](1, 2) ZIP 201: Network Peer Management for Overwinter
[5]ZIP 208: Shorter Block Target Spacing
You can’t perform that action at this time.