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:
parent
fb66c7ecdf
commit
06dd39df54
|
@ -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
|
/// The current protocol version typically changes before Mainnet and Testnet
|
||||||
/// network upgrades.
|
/// 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.
|
/// 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).
|
// TODO: replace with NetworkUpgrade::current(network, height).
|
||||||
// See the detailed comment in handshake.rs, where this constant is used.
|
// 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.
|
/// The default RTT estimate for peer responses.
|
||||||
///
|
///
|
||||||
|
|
Loading…
Reference in New Issue