mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-15 14:22:37 -03:00
18 lines
863 B
C++
18 lines
863 B
C++
|
// Copyright (c) 2020 The Bitcoin Core developers
|
||
|
// Distributed under the MIT software license, see the accompanying
|
||
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||
|
|
||
|
#include <deploymentstatus.h>
|
||
|
|
||
|
#include <consensus/params.h>
|
||
|
#include <versionbits.h>
|
||
|
|
||
|
VersionBitsCache versionbitscache;
|
||
|
|
||
|
/* Basic sanity checking for BuriedDeployment/DeploymentPos enums and
|
||
|
* ValidDeployment check */
|
||
|
|
||
|
static_assert(ValidDeployment(Consensus::DEPLOYMENT_TESTDUMMY), "sanity check of DeploymentPos failed (TESTDUMMY not valid)");
|
||
|
static_assert(!ValidDeployment(Consensus::MAX_VERSION_BITS_DEPLOYMENTS), "sanity check of DeploymentPos failed (MAX value considered valid)");
|
||
|
static_assert(!ValidDeployment(static_cast<Consensus::BuriedDeployment>(Consensus::DEPLOYMENT_TESTDUMMY)), "sanity check of BuriedDeployment failed (overlaps with DeploymentPos)");
|