Activate CSV and Segwit immediately

This commit is contained in:
instagibbs 2016-09-21 12:54:27 -04:00 committed by Gregory Sanders
parent 9167fba9dc
commit 2fae0dffc5

View file

@ -164,6 +164,9 @@ public:
ThresholdState VersionBitsState(const CBlockIndex* pindexPrev, const Consensus::Params& params, Consensus::DeploymentPos pos, VersionBitsCache& cache)
{
// Just return true for rules included in Core 0.13
if (pos == Consensus::DEPLOYMENT_SEGWIT || pos == Consensus::DEPLOYMENT_CSV)
return THRESHOLD_ACTIVE;
return VersionBitsConditionChecker(pos).GetStateFor(pindexPrev, params, cache.caches[pos]);
}