diff options
| author | Luke Dashjr <[email protected]> | 2016-04-23 23:30:20 +0000 |
|---|---|---|
| committer | Luke Dashjr <[email protected]> | 2016-06-06 17:10:22 +0000 |
| commit | d3df40e51a29bd98830043dd19829126390d1bc4 (patch) | |
| tree | edfd8caa0807b98e7ab56b91729018040f8fd8a6 /src/versionbits.cpp | |
| parent | Test of BIP9 fork activation of mtp, csv, sequence_lock (diff) | |
| download | discoin-d3df40e51a29bd98830043dd19829126390d1bc4.tar.xz discoin-d3df40e51a29bd98830043dd19829126390d1bc4.zip | |
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 fbb60c0fc..041ca2adb 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); |