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
848 B
30 lines
848 B
// Copyright (c) 2016-2018 The Bitcoin Core developers
|
|
// Distributed under the MIT software license, see the accompanying
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
#ifndef BITCOIN_DEPLOYMENTINFO_H
|
|
#define BITCOIN_DEPLOYMENTINFO_H
|
|
|
|
#include <consensus/params.h>
|
|
|
|
#include <string>
|
|
|
|
struct VBDeploymentInfo {
|
|
/** Deployment name */
|
|
const char *name;
|
|
/** Whether GBT clients can safely ignore this rule in simplified usage */
|
|
bool gbt_force;
|
|
};
|
|
|
|
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;
|
|
}
|
|
|
|
#endif // BITCOIN_DEPLOYMENTINFO_H
|