doc: Add a TODO to the network protocol

This commit is contained in:
teor 2020-07-22 22:10:59 +10:00
parent 359febb2e2
commit 85f113bc18
1 changed files with 2 additions and 1 deletions

View File

@ -39,7 +39,8 @@ impl Version {
/// Returns the minimum network protocol version for `network` and /// Returns the minimum network protocol version for `network` and
/// `network_upgrade`. /// `network_upgrade`.
pub fn min_version(network: Network, network_upgrade: NetworkUpgrade) -> Self { pub fn min_version(network: Network, network_upgrade: NetworkUpgrade) -> Self {
// We might not ever use these older versions. // TODO: Should we reject earlier protocol versions during our initial
// sync? zcashd accepts 170_002 or later during its initial sync.
Version(match (network, network_upgrade) { Version(match (network, network_upgrade) {
(_, BeforeOverwinter) => 170_002, (_, BeforeOverwinter) => 170_002,
(Testnet, Overwinter) => 170_003, (Testnet, Overwinter) => 170_003,