diff options
author | Luke Dashjr <luke-jr+git@utopios.org> | 2016-04-23 23:30:20 +0000 |
---|---|---|
committer | Luke Dashjr <luke-jr+git@utopios.org> | 2016-06-08 18:42:17 +0000 |
commit | ddd8c01d705df5526260c3804f89aa9ca9987fac (patch) | |
tree | 68a4cd6d6d50efed8d4a24879cf86c30d0f43a82 /src/versionbits.cpp | |
parent | 26e9a05cc3192ce19b7c46043aeb12230d3207a5 (diff) | |
download | bitcoin-ddd8c01d705df5526260c3804f89aa9ca9987fac.tar.xz |
Implement BIP 9 GBT changes
- BIP9DeploymentInfo struct for static deployment info
- VersionBitsDeploymentInfo: Avoid C++11ism by commenting parameter names
- getblocktemplate: Make sure to set deployments in the version if it is LOCKED_IN
- In this commit, all rules are considered required for clients to support
Diffstat (limited to 'src/versionbits.cpp')
-rw-r--r-- | src/versionbits.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/versionbits.cpp b/src/versionbits.cpp index fbb60c0fc5..041ca2adbc 100644 --- a/src/versionbits.cpp +++ b/src/versionbits.cpp @@ -4,6 +4,17 @@ #include "versionbits.h" +#include "consensus/params.h" + +const struct BIP9DeploymentInfo VersionBitsDeploymentInfo[Consensus::MAX_VERSION_BITS_DEPLOYMENTS] = { + { + /*.name =*/ "testdummy", + }, + { + /*.name =*/ "csv", + } +}; + ThresholdState AbstractThresholdConditionChecker::GetStateFor(const CBlockIndex* pindexPrev, const Consensus::Params& params, ThresholdConditionCache& cache) const { int nPeriod = Period(params); |