]> Git Repo - VerusCoin.git/blame - src/deprecation.h
Miningrequirespeers
[VerusCoin.git] / src / deprecation.h
CommitLineData
5b3bc971
JG
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.
4
5#ifndef ZCASH_DEPRECATION_H
6#define ZCASH_DEPRECATION_H
7
d6252a94 8// Deprecation policy:
66a9fd8b 9// * Shut down 16 weeks' worth of blocks after the estimated release block height.
d6252a94 10// * A warning is shown during the 2 weeks' worth of blocks prior to shut down.
99aeab28 11static const int APPROX_RELEASE_HEIGHT = 227000;
c754dbcf 12static const int WEEKS_UNTIL_DEPRECATION = 24;
13static const int DEPRECATION_HEIGHT = APPROX_RELEASE_HEIGHT + (WEEKS_UNTIL_DEPRECATION * 7 * 60 * 24);
5b3bc971
JG
14
15// Number of blocks before deprecation to warn users
86131275 16static const int DEPRECATION_WARN_LIMIT = 60 * 24 * 60; // 2 months
5b3bc971
JG
17
18/**
19 * Checks whether the node is deprecated based on the current block height, and
20 * shuts down the node with an error if so (and deprecation is not disabled for
7b4d0c77
JG
21 * the current client version). Warning and error messages are sent to the debug
22 * log, the metrics UI, and (if configured) -alertnofity.
23 *
24 * fThread means run -alertnotify in a free-running thread.
5b3bc971 25 */
7b4d0c77 26void EnforceNodeDeprecation(int nHeight, bool forceLogging=false, bool fThread=true);
5b3bc971
JG
27
28#endif // ZCASH_DEPRECATION_H
This page took 0.126942 seconds and 4 git commands to generate.