2020-12-31 05:48:25 -03:00
|
|
|
// Copyright (c) 2016-2020 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
|
|
|
#include <deploymentinfo.h>
|
2018-06-16 16:33:42 -04:00
|
|
|
|
|
|
|
#include <consensus/params.h>
|
|
|
|
|
|
|
|
const struct VBDeploymentInfo VersionBitsDeploymentInfo[Consensus::MAX_VERSION_BITS_DEPLOYMENTS] = {
|
|
|
|
{
|
|
|
|
/*.name =*/ "testdummy",
|
|
|
|
/*.gbt_force =*/ true,
|
|
|
|
},
|
2020-09-11 18:34:17 -03:00
|
|
|
{
|
|
|
|
/*.name =*/ "taproot",
|
|
|
|
/*.gbt_force =*/ true,
|
|
|
|
},
|
2018-06-16 16:33:42 -04:00
|
|
|
};
|
2021-03-10 23:47:24 -03:00
|
|
|
|
|
|
|
std::string DeploymentName(Consensus::BuriedDeployment dep)
|
|
|
|
{
|
|
|
|
assert(ValidDeployment(dep));
|
|
|
|
switch (dep) {
|
|
|
|
case Consensus::DEPLOYMENT_HEIGHTINCB:
|
|
|
|
return "bip34";
|
|
|
|
case Consensus::DEPLOYMENT_CLTV:
|
|
|
|
return "bip65";
|
|
|
|
case Consensus::DEPLOYMENT_DERSIG:
|
|
|
|
return "bip66";
|
|
|
|
case Consensus::DEPLOYMENT_CSV:
|
|
|
|
return "csv";
|
|
|
|
case Consensus::DEPLOYMENT_SEGWIT:
|
|
|
|
return "segwit";
|
|
|
|
} // no default case, so the compiler can warn about missing cases
|
|
|
|
return "";
|
|
|
|
}
|