Bitcoin Core  22.99.0
P2P Digital Currency
deploymentinfo.h
Go to the documentation of this file.
1 // Copyright (c) 2016-2018 The Bitcoin Core 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 BITCOIN_DEPLOYMENTINFO_H
6 #define BITCOIN_DEPLOYMENTINFO_H
7 
8 #include <consensus/params.h>
9 
10 #include <string>
11 
14  const char *name;
16  bool gbt_force;
17 };
18 
20 
22 
24 {
26  return VersionBitsDeploymentInfo[pos].name;
27 }
28 
29 #endif // BITCOIN_DEPLOYMENTINFO_H
VBDeploymentInfo
Definition: deploymentinfo.h:12
assert
assert(!tx.IsCoinBase())
Consensus::MAX_VERSION_BITS_DEPLOYMENTS
@ MAX_VERSION_BITS_DEPLOYMENTS
Definition: params.h:32
Consensus::DeploymentPos
DeploymentPos
Definition: params.h:28
DeploymentName
std::string DeploymentName(Consensus::BuriedDeployment dep)
Definition: deploymentinfo.cpp:20
VersionBitsDeploymentInfo
const VBDeploymentInfo VersionBitsDeploymentInfo[Consensus::MAX_VERSION_BITS_DEPLOYMENTS]
Definition: deploymentinfo.cpp:9
Consensus::ValidDeployment
constexpr bool ValidDeployment(BuriedDeployment dep)
Definition: params.h:26
VBDeploymentInfo::gbt_force
bool gbt_force
Whether GBT clients can safely ignore this rule in simplified usage.
Definition: deploymentinfo.h:16
VBDeploymentInfo::name
const char * name
Deployment name.
Definition: deploymentinfo.h:14
Consensus::BuriedDeployment
BuriedDeployment
A buried deployment is one where the height of the activation has been hardcoded into the client impl...
Definition: params.h:18
params.h