Verus Coin - this coin was backdoored by it's lead dev and should not be trusted!
https://git.hush.is/duke/backdoors/src/branch/master/vrsc.md
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
1.2 KiB
30 lines
1.2 KiB
// Copyright (c) 2017 The Zcash developers
|
|
// Distributed under the MIT software license, see the accompanying
|
|
// file COPYING or https://www.opensource.org/licenses/mit-license.php .
|
|
|
|
#ifndef ZCASH_DEPRECATION_H
|
|
#define ZCASH_DEPRECATION_H
|
|
|
|
// Deprecation policy:
|
|
// * Shut down 20 weeks' worth of blocks after the estimated release block height.
|
|
// * A warning is shown during the 2 weeks' worth of blocks prior to shut down.
|
|
|
|
static const int APPROX_RELEASE_HEIGHT = 2212000;
|
|
|
|
static const int WEEKS_UNTIL_DEPRECATION = 20;
|
|
static const int DEPRECATION_HEIGHT = APPROX_RELEASE_HEIGHT + (WEEKS_UNTIL_DEPRECATION * 7 * 60 * 24);
|
|
|
|
// Number of blocks before deprecation to warn users
|
|
static const int DEPRECATION_WARN_LIMIT = 60 * 24 * 60; // 2 months
|
|
|
|
/**
|
|
* Checks whether the node is deprecated based on the current block height, and
|
|
* shuts down the node with an error if so (and deprecation is not disabled for
|
|
* the current client version). Warning and error messages are sent to the debug
|
|
* log, the metrics UI, and (if configured) -alertnofity.
|
|
*
|
|
* fThread means run -alertnotify in a free-running thread.
|
|
*/
|
|
void EnforceNodeDeprecation(int nHeight, bool forceLogging=false, bool fThread=true);
|
|
|
|
#endif // ZCASH_DEPRECATION_H
|
|
|