diff options
| author | Pieter Wuille <[email protected]> | 2016-06-08 15:28:45 +0200 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2016-06-08 15:44:07 +0200 |
| commit | 66ed450d771a8fc01c159a8402648ebd1c35eb4c (patch) | |
| tree | 43998454f3822caed7f0704f6f487e30c723d4c0 /src/versionbits.cpp | |
| parent | Merge #7993: [depends] Bump Freetype, ccache, ZeroMQ, miniupnpc, expat (diff) | |
| parent | getblocktemplate: Use version/force mutation to support pre-BIP9 clients (diff) | |
| download | discoin-66ed450d771a8fc01c159a8402648ebd1c35eb4c.tar.xz discoin-66ed450d771a8fc01c159a8402648ebd1c35eb4c.zip | |
Merge #7935: Versionbits: GBT support
12c708a getblocktemplate: Use version/force mutation to support pre-BIP9 clients (Luke Dashjr)
9879060 getblocktemplate: Explicitly handle the distinction between GBT-affecting softforks vs not (Luke Dashjr)
72cd6b2 qa/rpc-tests: bip9-softforks: Add tests for getblocktemplate versionbits updates (Luke Dashjr)
d3df40e Implement BIP 9 GBT changes (Luke Dashjr)
Diffstat (limited to 'src/versionbits.cpp')
| -rw-r--r-- | src/versionbits.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/versionbits.cpp b/src/versionbits.cpp index 78feb8ab0..043819c65 100644 --- a/src/versionbits.cpp +++ b/src/versionbits.cpp @@ -4,6 +4,19 @@ #include "versionbits.h" +#include "consensus/params.h" + +const struct BIP9DeploymentInfo VersionBitsDeploymentInfo[Consensus::MAX_VERSION_BITS_DEPLOYMENTS] = { + { + /*.name =*/ "testdummy", + /*.gbt_force =*/ true, + }, + { + /*.name =*/ "csv", + /*.gbt_force =*/ true, + } +}; + ThresholdState AbstractThresholdConditionChecker::GetStateFor(const CBlockIndex* pindexPrev, const Consensus::Params& params, ThresholdConditionCache& cache) const { int nPeriod = Period(params); |