1 // Copyright (c) 2017 The Zcash developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
5 #ifndef ZCASH_DEPRECATION_H
6 #define ZCASH_DEPRECATION_H
8 // Deprecation policy is 4th third-Tuesday after a release
9 static const int APPROX_RELEASE_HEIGHT = 115000;
10 static const int WEEKS_UNTIL_DEPRECATION = 18;
11 static const int DEPRECATION_HEIGHT = APPROX_RELEASE_HEIGHT + (WEEKS_UNTIL_DEPRECATION * 7 * 24 * 24);
13 // Number of blocks before deprecation to warn users
14 static const int DEPRECATION_WARN_LIMIT = 14 * 24 * 24; // 2 weeks
17 * Checks whether the node is deprecated based on the current block height, and
18 * shuts down the node with an error if so (and deprecation is not disabled for
19 * the current client version).
21 void EnforceNodeDeprecation(int nHeight, bool forceLogging=false);
23 #endif // ZCASH_DEPRECATION_H