Bitcoin Core  22.99.0
P2P Digital Currency
deploymentinfo.cpp
Go to the documentation of this file.
1 // Copyright (c) 2016-2020 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 #include <deploymentinfo.h>
6 
7 #include <consensus/params.h>
8 
10  {
11  /*.name =*/ "testdummy",
12  /*.gbt_force =*/ true,
13  },
14  {
15  /*.name =*/ "taproot",
16  /*.gbt_force =*/ true,
17  },
18 };
19 
21 {
22  assert(ValidDeployment(dep));
23  switch (dep) {
25  return "bip34";
27  return "bip65";
29  return "bip66";
31  return "csv";
33  return "segwit";
34  } // no default case, so the compiler can warn about missing cases
35  return "";
36 }
VBDeploymentInfo
Definition: deploymentinfo.h:12
assert
assert(!tx.IsCoinBase())
Consensus::MAX_VERSION_BITS_DEPLOYMENTS
@ MAX_VERSION_BITS_DEPLOYMENTS
Definition: params.h:32
Consensus::DEPLOYMENT_HEIGHTINCB
@ DEPLOYMENT_HEIGHTINCB
Definition: params.h:20
VersionBitsDeploymentInfo
const struct VBDeploymentInfo VersionBitsDeploymentInfo[Consensus::MAX_VERSION_BITS_DEPLOYMENTS]
Definition: deploymentinfo.cpp:9
Consensus::DEPLOYMENT_CLTV
@ DEPLOYMENT_CLTV
Definition: params.h:21
Consensus::DEPLOYMENT_SEGWIT
@ DEPLOYMENT_SEGWIT
Definition: params.h:24
Consensus
Transaction validation functions.
Definition: params.h:12
deploymentinfo.h
Consensus::ValidDeployment
constexpr bool ValidDeployment(BuriedDeployment dep)
Definition: params.h:26
Consensus::DEPLOYMENT_DERSIG
@ DEPLOYMENT_DERSIG
Definition: params.h:22
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
Consensus::DEPLOYMENT_CSV
@ DEPLOYMENT_CSV
Definition: params.h:23
DeploymentName
std::string DeploymentName(Consensus::BuriedDeployment dep)
Definition: deploymentinfo.cpp:20