network: bump network version for Canopy (#1333)

Per https://zips.z.cash/zip-0251, nodes compatible with Canopy
activation on mainnet MUST advertise protocol version 170013 or later.

Once Canopy activates on testnet or mainnet, Canopy nodes SHOULD reject
new connections from pre-Canopy nodes, so this also increases the
minimum version.
This commit is contained in:
Henry de Valence 2020-11-19 15:50:05 -08:00 committed by GitHub
parent fb66c7ecdf
commit 06dd39df54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -67,7 +67,7 @@ pub const USER_AGENT: &str = "/🦓Zebra🦓:3.0.0-alpha.0/";
///
/// The current protocol version typically changes before Mainnet and Testnet
/// network upgrades.
pub const CURRENT_VERSION: Version = Version(170_012);
pub const CURRENT_VERSION: Version = Version(170_013);
/// The most recent bilateral consensus upgrade implemented by this crate.
///
@ -76,7 +76,7 @@ pub const CURRENT_VERSION: Version = Version(170_012);
//
// TODO: replace with NetworkUpgrade::current(network, height).
// See the detailed comment in handshake.rs, where this constant is used.
pub const MIN_NETWORK_UPGRADE: NetworkUpgrade = NetworkUpgrade::Heartwood;
pub const MIN_NETWORK_UPGRADE: NetworkUpgrade = NetworkUpgrade::Canopy;
/// The default RTT estimate for peer responses.
///