2021-12-30 14:36:57 -03:00
|
|
|
// Copyright (c) 2016-2021 The Bitcoin Core developers
|
2018-06-16 16:33:42 -04:00
|
|
|
// Distributed under the MIT software license, see the accompanying
|
|
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
|
2021-03-10 23:17:22 -03:00
|
|
|
#ifndef BITCOIN_DEPLOYMENTINFO_H
|
|
|
|
#define BITCOIN_DEPLOYMENTINFO_H
|
2018-06-16 16:33:42 -04:00
|
|
|
|
2021-03-10 23:47:24 -03:00
|
|
|
#include <consensus/params.h>
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
2018-06-16 16:33:42 -04:00
|
|
|
struct VBDeploymentInfo {
|
|
|
|
/** Deployment name */
|
|
|
|
const char *name;
|
|
|
|
/** Whether GBT clients can safely ignore this rule in simplified usage */
|
|
|
|
bool gbt_force;
|
|
|
|
};
|
|
|
|
|
2021-03-10 23:47:24 -03:00
|
|
|
extern const VBDeploymentInfo VersionBitsDeploymentInfo[Consensus::MAX_VERSION_BITS_DEPLOYMENTS];
|
|
|
|
|
|
|
|
std::string DeploymentName(Consensus::BuriedDeployment dep);
|
|
|
|
|
|
|
|
inline std::string DeploymentName(Consensus::DeploymentPos pos)
|
|
|
|
{
|
|
|
|
assert(Consensus::ValidDeployment(pos));
|
|
|
|
return VersionBitsDeploymentInfo[pos].name;
|
|
|
|
}
|
2018-06-16 16:33:42 -04:00
|
|
|
|
2021-03-10 23:17:22 -03:00
|
|
|
#endif // BITCOIN_DEPLOYMENTINFO_H
|