Any projects which want to use Hush code from now on will need to be licensed as GPLv3 or we will send the lawyers: https://www.softwarefreedom.org/ Notably, Komodo (KMD) is licensed as GPLv2 and is no longer compatible to receive code changes, without causing legal issues. MIT projects, such as Zcash, also cannot pull in changes from the Hush Full Node without permission from The Hush Developers, which may in some circumstances grant an MIT license on a case-by-case basis.
42 lines
2.2 KiB
C
42 lines
2.2 KiB
C
// Copyright (c) 2017 The Zcash developers
|
|
// Copyright (c) 2019-2020 The Hush developers
|
|
// Distributed under the GPLv3 software license, see the accompanying
|
|
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html
|
|
|
|
/******************************************************************************
|
|
* Copyright © 2014-2019 The SuperNET Developers. *
|
|
* *
|
|
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
|
|
* the top-level directory of this distribution for the individual copyright *
|
|
* holder information and the developer policies on copyright and licensing. *
|
|
* *
|
|
* Unless otherwise agreed in a custom licensing agreement, no part of the *
|
|
* SuperNET software, including this file may be copied, modified, propagated *
|
|
* or distributed except according to the terms contained in the LICENSE file *
|
|
* *
|
|
* Removal or modification of this copyright notice is prohibited. *
|
|
* *
|
|
******************************************************************************/
|
|
|
|
#ifndef ZCASH_DEPRECATION_H
|
|
#define ZCASH_DEPRECATION_H
|
|
|
|
// Deprecation policy:
|
|
// * Shut down WEEKS_UNTIL_DEPRECATION weeks' worth of blocks after the estimated release block height.
|
|
// * A warning is shown during the DEPRECATION_WARN_LIMIT worth of blocks prior to shut down.
|
|
static const int WEEKS_UNTIL_DEPRECATION = 52;
|
|
static const int DEPRECATION_HEIGHT = 5555555;
|
|
static const int APPROX_RELEASE_HEIGHT = DEPRECATION_HEIGHT - (WEEKS_UNTIL_DEPRECATION * 7 * 24 * 60);
|
|
|
|
// 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).
|
|
*/
|
|
void EnforceNodeDeprecation(int nHeight, bool forceLogging=false, bool fThread=true);
|
|
|
|
#endif // ZCASH_DEPRECATION_H
|