mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-09 10:43:19 -05:00
doc: Move buried deployment doc to the enum that enumerates them
This is more visible than a comment hidden in an RPC helper function.
This commit is contained in:
parent
ddc6979b8b
commit
fa11fecf0d
2 changed files with 6 additions and 6 deletions
|
@ -11,8 +11,11 @@
|
||||||
|
|
||||||
namespace Consensus {
|
namespace Consensus {
|
||||||
|
|
||||||
enum BuriedDeployment : int16_t
|
/**
|
||||||
{
|
* A buried deployment is one where the height of the activation has been hardcoded into
|
||||||
|
* the client implementation long after the consensus change has activated. See BIP 90.
|
||||||
|
*/
|
||||||
|
enum BuriedDeployment : int16_t {
|
||||||
// buried deployments get negative values to avoid overlap with DeploymentPos
|
// buried deployments get negative values to avoid overlap with DeploymentPos
|
||||||
DEPLOYMENT_HEIGHTINCB = std::numeric_limits<int16_t>::min(),
|
DEPLOYMENT_HEIGHTINCB = std::numeric_limits<int16_t>::min(),
|
||||||
DEPLOYMENT_CLTV,
|
DEPLOYMENT_CLTV,
|
||||||
|
@ -22,8 +25,7 @@ enum BuriedDeployment : int16_t
|
||||||
};
|
};
|
||||||
constexpr bool ValidDeployment(BuriedDeployment dep) { return DEPLOYMENT_HEIGHTINCB <= dep && dep <= DEPLOYMENT_SEGWIT; }
|
constexpr bool ValidDeployment(BuriedDeployment dep) { return DEPLOYMENT_HEIGHTINCB <= dep && dep <= DEPLOYMENT_SEGWIT; }
|
||||||
|
|
||||||
enum DeploymentPos : uint16_t
|
enum DeploymentPos : uint16_t {
|
||||||
{
|
|
||||||
DEPLOYMENT_TESTDUMMY,
|
DEPLOYMENT_TESTDUMMY,
|
||||||
DEPLOYMENT_TAPROOT, // Deployment of Schnorr/Taproot (BIPs 340-342)
|
DEPLOYMENT_TAPROOT, // Deployment of Schnorr/Taproot (BIPs 340-342)
|
||||||
// NOTE: Also add new deployments to VersionBitsDeploymentInfo in deploymentinfo.cpp
|
// NOTE: Also add new deployments to VersionBitsDeploymentInfo in deploymentinfo.cpp
|
||||||
|
|
|
@ -1350,8 +1350,6 @@ static RPCHelpMan verifychain()
|
||||||
static void SoftForkDescPushBack(const CBlockIndex* active_chain_tip, UniValue& softforks, const Consensus::Params& params, Consensus::BuriedDeployment dep)
|
static void SoftForkDescPushBack(const CBlockIndex* active_chain_tip, UniValue& softforks, const Consensus::Params& params, Consensus::BuriedDeployment dep)
|
||||||
{
|
{
|
||||||
// For buried deployments.
|
// For buried deployments.
|
||||||
// A buried deployment is one where the height of the activation has been hardcoded into
|
|
||||||
// the client implementation long after the consensus change has activated. See BIP 90.
|
|
||||||
// Buried deployments with activation height value of
|
// Buried deployments with activation height value of
|
||||||
// std::numeric_limits<int>::max() are disabled and thus hidden.
|
// std::numeric_limits<int>::max() are disabled and thus hidden.
|
||||||
if (!DeploymentEnabled(params, dep)) return;
|
if (!DeploymentEnabled(params, dep)) return;
|
||||||
|
|
Loading…
Add table
Reference in a new issue